Class: Pago::V2026_04::Models::ListResourceMeter
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::ListResourceMeter
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
#initialize(items:, pagination:) ⇒ ListResourceMeter
Returns a new instance of ListResourceMeter.
28305
28306
28307
28308
28309
28310
28311
28312
|
# File 'lib/pago/v2026_04/models.rb', line 28305
def initialize(
items:,
pagination:
)
super()
assign(:items, items)
assign(:pagination, )
end
|
Instance Attribute Details
28300
28301
28302
|
# File 'lib/pago/v2026_04/models.rb', line 28300
def items
@items
end
|
28303
28304
28305
|
# File 'lib/pago/v2026_04/models.rb', line 28303
def
@pagination
end
|
Class Method Details
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
|
# File 'lib/pago/v2026_04/models.rb', line 28316
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::Meter.from_json(item0) } : ::Pago::UNSET),
pagination: (data.key?("pagination") ? Models::Pagination.from_json(data["pagination"]) : ::Pago::UNSET)
),
data
)
end
|