Class: NasaApod::SearchResults
- Inherits:
-
Object
- Object
- NasaApod::SearchResults
- Defined in:
- lib/nasa_apod/search_results.rb
Instance Attribute Summary collapse
-
#concepts ⇒ Object
Returns the value of attribute concepts.
-
#explanation ⇒ Object
Returns the value of attribute explanation.
-
#media_type ⇒ Object
Returns the value of attribute media_type.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SearchResults
constructor
A new instance of SearchResults.
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
#concepts ⇒ Object
Returns the value of attribute concepts.
4 5 6 |
# File 'lib/nasa_apod/search_results.rb', line 4 def concepts @concepts end |
#explanation ⇒ Object
Returns the value of attribute explanation.
4 5 6 |
# File 'lib/nasa_apod/search_results.rb', line 4 def explanation @explanation end |
#media_type ⇒ Object
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 |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/nasa_apod/search_results.rb', line 4 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/nasa_apod/search_results.rb', line 4 def url @url end |