Sha256: 055edd208042a6f51d3960ab7ea5af1b013efc10ea000b1b062bd24462c231f7

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

module LinkThumbnailer
  module WebImage

    attr_accessor :source_url, :doc

    def to_hash
      result = {}
      LinkThumbnailer.configuration.rmagick_attributes.each {|m|
        k         = m.to_sym
        result[k] = self.send(m)    if self.respond_to?(m)
        result[k] = result[k].to_s  if result[k].is_a?(URI)
      }

      result
    end

  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
rcarvalho-link_thumbnailer-1.0.9.1 lib/link_thumbnailer/web_image.rb
link_thumbnailer-1.0.9 lib/link_thumbnailer/web_image.rb
link_thumbnailer-1.0.8 lib/link_thumbnailer/web_image.rb
link_thumbnailer-1.0.7 lib/link_thumbnailer/web_image.rb
link_thumbnailer-1.0.6 lib/link_thumbnailer/web_image.rb