Class: NasaApod::SearchResults

Inherits:
Object
  • Object
show all
Defined in:
lib/nasa_apod/search_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ SearchResults

Returns a new instance of SearchResults.



6
7
8
9
10
11
12
# File 'lib/nasa_apod/search_results.rb', line 6

def initialize(attributes={})
  @concepts = attributes["concepts"]
  @url = attributes["url"]
  @media_type = attributes["media_type"]
  @explanation = attributes["explanation"] 
  @title = attributes["title"]
end

Instance Attribute Details

#conceptsObject

Returns the value of attribute concepts.



4
5
6
# File 'lib/nasa_apod/search_results.rb', line 4

def concepts
  @concepts
end

#explanationObject

Returns the value of attribute explanation.



4
5
6
# File 'lib/nasa_apod/search_results.rb', line 4

def explanation
  @explanation
end

#media_typeObject

Returns the value of attribute media_type.



4
5
6
# File 'lib/nasa_apod/search_results.rb', line 4

def media_type
  @media_type
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/nasa_apod/search_results.rb', line 4

def title
  @title
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/nasa_apod/search_results.rb', line 4

def url
  @url
end