Class: Pago::V2026_04::Models::Filter
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::Filter
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
conjunction: "conjunction",
clauses: "clauses"
}.freeze
- REQUIRED_KEYS =
["conjunction", "clauses"].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(conjunction:, clauses:) ⇒ Filter
Returns a new instance of Filter.
25826
25827
25828
25829
25830
25831
25832
25833
|
# File 'lib/pago/v2026_04/models.rb', line 25826
def initialize(
conjunction:,
clauses:
)
super()
assign(:conjunction, conjunction)
assign(:clauses, clauses)
end
|
Instance Attribute Details
25824
25825
25826
|
# File 'lib/pago/v2026_04/models.rb', line 25824
def clauses
@clauses
end
|
#conjunction ⇒ String
25821
25822
25823
|
# File 'lib/pago/v2026_04/models.rb', line 25821
def conjunction
@conjunction
end
|
Class Method Details
.from_json(data) ⇒ Filter?
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
|
# File 'lib/pago/v2026_04/models.rb', line 25837
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(
conjunction: (data.key?("conjunction") ? data["conjunction"] : ::Pago::UNSET),
clauses: (data.key?("clauses") ? ::Pago::Serde.array(data["clauses"]) { |item0| ::Pago::Serde.union(item0, variants: [Models::FilterClause, Models::Filter]) } : ::Pago::UNSET)
),
data
)
end
|