class WeatherGov::Product
Public Instance Methods
code()
click to toggle source
# File lib/weather_gov/product.rb, line 13 def code data.fetch("productCode") end
issuance_time()
click to toggle source
# File lib/weather_gov/product.rb, line 9 def issuance_time Time.parse(data.fetch("issuanceTime")) end
issuing_office()
click to toggle source
# File lib/weather_gov/product.rb, line 5 def issuing_office data.fetch("issuingOffice") end
name()
click to toggle source
# File lib/weather_gov/product.rb, line 17 def name data.fetch("productName") end
product()
click to toggle source
# File lib/weather_gov/product.rb, line 25 def product client.product(id: id) if id end
text()
click to toggle source
# File lib/weather_gov/product.rb, line 21 def text data.fetch("productText") end