Class: Pago::V2026_04::Models::ListResourceCustomerMeter
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::ListResourceCustomerMeter
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
items: "items",
pagination: "pagination"
}.freeze
- REQUIRED_KEYS =
["items", "pagination"].freeze
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
Returns a new instance of ListResourceCustomerMeter.
27720
27721
27722
27723
27724
27725
27726
27727
|
# File 'lib/pago/v2026_04/models.rb', line 27720
def initialize(
items:,
pagination:
)
super()
assign(:items, items)
assign(:pagination, )
end
|
Instance Attribute Details
27715
27716
27717
|
# File 'lib/pago/v2026_04/models.rb', line 27715
def items
@items
end
|
27718
27719
27720
|
# File 'lib/pago/v2026_04/models.rb', line 27718
def
@pagination
end
|
Class Method Details
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
|
# File 'lib/pago/v2026_04/models.rb', line 27731
def self.from_json(data)
data = ::JSON.parse(data) if data.is_a?(String)
data = ::Pago::Serde.object(data)
return nil if data.nil?
wrap_raw(
new(
items: (data.key?("items") ? ::Pago::Serde.array(data["items"]) { |item0| Models::CustomerMeter.from_json(item0) } : ::Pago::UNSET),
pagination: (data.key?("pagination") ? Models::Pagination.from_json(data["pagination"]) : ::Pago::UNSET)
),
data
)
end
|