Module: Cdss::Parsers::ClimateParser

Extended by:
BaseParser
Defined in:
lib/cdss/parsers/climate_parser.rb

Class Method Summary collapse

Methods included from BaseParser

parse_collection

Methods included from Utils

#batch_dates, #build_query, #fetch_paginated_data, #format_date, #format_query_param, #parse_timestamp, #safe_float, #safe_integer

Class Method Details

.parse_climate_readings(response, type:) ⇒ Object



13
14
15
# File 'lib/cdss/parsers/climate_parser.rb', line 13

def parse_climate_readings(response, type:)
  parse_collection(response) { |data| build_reading(data, type) }
end

.parse_climate_stations(response) ⇒ Object



9
10
11
# File 'lib/cdss/parsers/climate_parser.rb', line 9

def parse_climate_stations(response)
  parse_collection(response) { |data| build_station(data) }
end