# File lib/google-qr.rb, line 28
  def render
    if self.size
      height, width = self.size.split('x')
      dimensions = " height='#{height}' width='#{width}' "
    else
      dimensions = nil
    end

    if self.html_options
      html_options = ""

      self.html_options.each do |k, v|
        if k.to_s.length > 0 && v.to_s.length > 0
          html_options += k.to_s + "='" + v.to_s + "' "
        end
      end
    else
      html_options = nil
    end

    "<img src='#{self.to_s}'#{dimensions}#{html_options}/>"
  end