Class: Pago::V2026_04::Models::CountAggregation
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ func: "func" }.freeze
- REQUIRED_KEYS =
[].freeze
Instance Attribute Summary collapse
- #func ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(func: ::Pago::UNSET) ⇒ CountAggregation
constructor
A new instance of CountAggregation.
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) ⇒ CountAggregation
Returns a new instance of CountAggregation.
13090 13091 13092 13093 13094 13095 |
# File 'lib/pago/v2026_04/models.rb', line 13090 def initialize( func: ::Pago::UNSET ) super() assign(:func, func) end |
Instance Attribute Details
#func ⇒ String (readonly)
13088 13089 13090 |
# File 'lib/pago/v2026_04/models.rb', line 13088 def func @func end |
Class Method Details
.from_json(data) ⇒ CountAggregation?
13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 |
# File 'lib/pago/v2026_04/models.rb', line 13099 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) ), data ) end |