Class: Pocket::DomainMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/pocket/domain_metadata.rb

Instance Method Summary collapse

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_logoObject



15
16
17
# File 'lib/pocket/domain_metadata.rb', line 15

def 
  response.fetch("greyscale_logo")
end

#logoObject



11
12
13
# File 'lib/pocket/domain_metadata.rb', line 11

def 
  response.fetch("logo")
end

#nameObject



7
8
9
# File 'lib/pocket/domain_metadata.rb', line 7

def name
  response.fetch("name")
end