Module: Cdss::Parsers::StructuresParser
- Extended by:
- BaseParser
- Defined in:
- lib/cdss/parsers/structures_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_diversion_records(response, type:) ⇒ Object
13
14
15
|
# File 'lib/cdss/parsers/structures_parser.rb', line 13
def parse_diversion_records(response, type:)
parse_collection(response) { |data| build_diversion_record(data, type) }
end
|
.parse_structures(response) ⇒ Object
9
10
11
|
# File 'lib/cdss/parsers/structures_parser.rb', line 9
def parse_structures(response)
parse_collection(response) { |data| build_structure(data) }
end
|
.parse_water_classes(response) ⇒ Object
17
18
19
|
# File 'lib/cdss/parsers/structures_parser.rb', line 17
def parse_water_classes(response)
parse_collection(response) { |data| build_water_class(data) }
end
|