Class: WeatherGov::ProductList

Inherits:
Feature
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/weather_gov/product_list.rb

Instance Attribute Summary

Attributes inherited from Feature

#client

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

#itemsObject



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