Class: Pago::V2026_04::Models::PropertyAggregation

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
  func: "func",
  property: "property"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["func", "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:, property:) ⇒ PropertyAggregation

Returns a new instance of PropertyAggregation.

Parameters:

  • func: (String)
  • property: (String)


38171
38172
38173
38174
38175
38176
38177
38178
# File 'lib/pago/v2026_04/models.rb', line 38171

def initialize(
  func:,
  property:
)
  super()
  assign(:func, func)
  assign(:property, property)
end

Instance Attribute Details

#funcString (readonly)

Returns:

  • (String)


38166
38167
38168
# File 'lib/pago/v2026_04/models.rb', line 38166

def func
  @func
end

#propertyString (readonly)

Returns:

  • (String)


38169
38170
38171
# File 'lib/pago/v2026_04/models.rb', line 38169

def property
  @property
end

Class Method Details

.from_json(data) ⇒ PropertyAggregation?

Parameters:

  • data (Hash, String, nil)

Returns:



38182
38183
38184
38185
38186
38187
38188
38189
38190
38191
38192
38193
38194
# File 'lib/pago/v2026_04/models.rb', line 38182

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