Class: Neows::Models::Feed
- Includes:
- LinkNavigation, Utils
- Defined in:
- lib/neows/models/feed.rb
Overview
Reverses the contents of a String or IO object.
Instance Attribute Summary collapse
-
#element_count ⇒ Integer
Number of results.
-
#near_earth_objects ⇒ Hash[String => Array<Neows::Models::NearEarthObject>]
List of Near Earth Objects grouped by date (YYYY-MM-DD) strings.
Attributes included from LinkNavigation
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#coerce! ⇒ self
Modifies existing list of hashes representing Near Earth Objects and coerces them each into #NearEarthObject.
Methods included from LinkNavigation
Methods included from Utils
Methods inherited from BaseModel
Constructor Details
This class inherits a constructor from Neows::Models::BaseModel
Instance Attribute Details
#element_count ⇒ Integer
Returns number of results.
18 |
# File 'lib/neows/models/feed.rb', line 18 attribute :element_count, Integer |
#near_earth_objects ⇒ Hash[String => Array<Neows::Models::NearEarthObject>]
Returns list of Near Earth Objects grouped by date (YYYY-MM-DD) strings.
23 |
# File 'lib/neows/models/feed.rb', line 23 attribute :near_earth_objects, Hash[String => Array] |
Instance Method Details
#coerce! ⇒ self
Modifies existing list of hashes representing Near Earth Objects and coerces them each into #NearEarthObject
28 29 30 31 32 33 34 |
# File 'lib/neows/models/feed.rb', line 28 def coerce! near_earth_objects.each_with_index do |data| near_earth_objects[data.first] = classify_list!(data[1], Neows::Models::NearEarthObject) end self end |