Class: WeatherGov::ProductList
- Extended by:
- Forwardable
- Defined in:
- lib/weather_gov/product_list.rb
Instance Attribute Summary
Attributes inherited from Feature
Instance Method Summary collapse
Methods inherited from Feature
#context, #data, #geometry, #id, #initialize, #properties, #type
Constructor Details
This class inherits a constructor from WeatherGov::Feature
Instance Method Details
#items ⇒ Object
11 12 13 |
# File 'lib/weather_gov/product_list.rb', line 11 def items @items ||= data.fetch("@graph").map { |item| Product.new(client: client, data: item) } end |