Class: Pago::V2026_04::Models::UniqueAggregation
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::UniqueAggregation
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
func: "func",
property: "property"
}.freeze
- REQUIRED_KEYS =
["property"].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(func: ::Pago::UNSET, property:) ⇒ UniqueAggregation
Returns a new instance of UniqueAggregation.
43576
43577
43578
43579
43580
43581
43582
43583
|
# File 'lib/pago/v2026_04/models.rb', line 43576
def initialize(
func: ::Pago::UNSET,
property:
)
super()
assign(:func, func)
assign(:property, property)
end
|
Instance Attribute Details
#func ⇒ String
43571
43572
43573
|
# File 'lib/pago/v2026_04/models.rb', line 43571
def func
@func
end
|
#property ⇒ String
43574
43575
43576
|
# File 'lib/pago/v2026_04/models.rb', line 43574
def property
@property
end
|
Class Method Details
43587
43588
43589
43590
43591
43592
43593
43594
43595
43596
43597
43598
43599
|
# File 'lib/pago/v2026_04/models.rb', line 43587
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(
func: (data.key?("func") ? data["func"] : ::Pago::UNSET),
property: (data.key?("property") ? data["property"] : ::Pago::UNSET)
),
data
)
end
|