Sha256: 8f322141b5d502ec9f1d0fcd1bb0625539f06dfa3dc2efd6b69063d8b1947848

Contents?: true

Size: 332 Bytes

Versions: 20

Compression:

Stored size: 332 Bytes

Contents

require 'link_thumbnailer/model'

module LinkThumbnailer
  module Models
    class Favicon < ::LinkThumbnailer::Model

      attr_reader :uri

      def initialize(uri)
        @uri = uri
      end

      def to_s
        uri.to_s
      end

      def as_json(*)
        {
          src: to_s
        }
      end

    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
link_thumbnailer-3.3.1 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.3.0 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.2.1 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.2.0 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.1.2 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.1.1 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.1.0 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.0.3 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.0.2 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.0.1 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-3.0.0 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.6.1 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.6.0 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.5.2 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.5.1 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.5.0 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.4.0 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.3.2 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.3.1 lib/link_thumbnailer/models/favicon.rb
link_thumbnailer-2.3.0 lib/link_thumbnailer/models/favicon.rb