Class: Pocket::DomainMetadata
- Inherits:
-
Object
- Object
- Pocket::DomainMetadata
- Defined in:
- lib/pocket/domain_metadata.rb
Instance Method Summary collapse
- #greyscale_logo ⇒ Object
-
#initialize(response) ⇒ DomainMetadata
constructor
A new instance of DomainMetadata.
- #logo ⇒ Object
- #name ⇒ Object
Constructor Details
#initialize(response) ⇒ DomainMetadata
Returns a new instance of DomainMetadata.
3 4 5 |
# File 'lib/pocket/domain_metadata.rb', line 3 def initialize(response) @response = response end |
Instance Method Details
#greyscale_logo ⇒ Object
15 16 17 |
# File 'lib/pocket/domain_metadata.rb', line 15 def greyscale_logo response.fetch("greyscale_logo") end |
#logo ⇒ Object
11 12 13 |
# File 'lib/pocket/domain_metadata.rb', line 11 def logo response.fetch("logo") end |
#name ⇒ Object
7 8 9 |
# File 'lib/pocket/domain_metadata.rb', line 7 def name response.fetch("name") end |