Class: Pago::V2026_04::Models::ListResourceWebhookDelivery
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::ListResourceWebhookDelivery
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 ListResourceWebhookDelivery.
28617
28618
28619
28620
28621
28622
28623
28624
|
# File 'lib/pago/v2026_04/models.rb', line 28617
def initialize(
items:,
pagination:
)
super()
assign(:items, items)
assign(:pagination, )
end
|
Instance Attribute Details
28612
28613
28614
|
# File 'lib/pago/v2026_04/models.rb', line 28612
def items
@items
end
|
28615
28616
28617
|
# File 'lib/pago/v2026_04/models.rb', line 28615
def
@pagination
end
|
Class Method Details
28628
28629
28630
28631
28632
28633
28634
28635
28636
28637
28638
28639
28640
|
# File 'lib/pago/v2026_04/models.rb', line 28628
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::WebhookDelivery.from_json(item0) } : ::Pago::UNSET),
pagination: (data.key?("pagination") ? Models::Pagination.from_json(data["pagination"]) : ::Pago::UNSET)
),
data
)
end
|