Class: Peddler::APIs::ServicesV1::AvailabilityRecords

Inherits:
Array
  • Object
show all
Defined in:
lib/peddler/apis/services_v1/availability_records.rb,
sig/peddler/apis/services_v1.rbs

Overview

List of AvailabilityRecords to represent the capacity of a resource over a time range.

Class Method Summary collapse

Class Method Details

.parse(array) ⇒ AvailabilityRecords

Parameters:

  • (Array[untyped])

Returns:



11
12
13
# File 'lib/peddler/apis/services_v1/availability_records.rb', line 11

def parse(array)
  new(array.map { |item| AvailabilityRecord.parse(item) })
end