Sha256: 0d3f39553bde261ba2314f8eabb0a98fbb188a73809a7635bbb1752d13edf193

Contents?: true

Size: 324 Bytes

Versions: 4

Compression:

Stored size: 324 Bytes

Contents

module Pocket
  class DomainMetadata
    def initialize(response)
      @response = response
    end

    def name
      response.fetch("name")
    end

    def logo
      response.fetch("logo")
    end

    def greyscale_logo
      response.fetch("greyscale_logo")
    end

    private

    attr_reader :response
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pocket-ruby-0.6.0 lib/pocket/domain_metadata.rb
pocket-ruby-0.5.0 lib/pocket/domain_metadata.rb
pocket-ruby-0.4.0 lib/pocket/domain_metadata.rb
pocket-ruby-0.3.0 lib/pocket/domain_metadata.rb