Module: Cdss::Parsers::ReadingParser

Extended by:
BaseParser
Defined in:
lib/cdss/parsers/reading_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_readings(response, timescale:) ⇒ Object



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

def parse_readings(response, timescale:)
  parse_collection(response) { |data| build_reading(data, timescale) }
end