Sha256: 8641ac05f8090ffd6e70b5465c74f5db4765b102bd3f044284362288c0ada70e
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
require 'virtus' require 'neows/utils' require 'neows/models/base_model' require 'neows/models/near_earth_object' require 'neows/models/link_navigation' module Neows module Models # Reverses the contents of a String or IO object. # # @return [Boolean] if success class Feed < Neows::Models::BaseModel include Neows::Utils include Neows::Models::LinkNavigation # @!attribute [rw] # @return [Integer] number of results attribute :element_count, Integer # @!attribute [rw] # @return [Hash[String => Array<Neows::Models::NearEarthObject>]] list of Near Earth Objects grouped by # date (YYYY-MM-DD) strings attribute :near_earth_objects, Hash[String => Array] # Modifies existing list of hashes representing Near Earth Objects and coerces them each into #NearEarthObject # # @return [self] 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 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
neows-1.1.0 | lib/neows/models/feed.rb |
neows-1.0.0 | lib/neows/models/feed.rb |
neows-0.0.2 | lib/neows/models/feed.rb |
neows-0.0.1 | lib/neows/models/feed.rb |