Class: Pago::V2026_04::Models::CustomerBenefitGrantGitHubRepositoryUpdate
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::CustomerBenefitGrantGitHubRepositoryUpdate
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
benefit_type: "benefit_type",
properties: "properties"
}.freeze
- REQUIRED_KEYS =
["benefit_type", "properties"].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 CustomerBenefitGrantGitHubRepositoryUpdate.
15627
15628
15629
15630
15631
15632
15633
15634
|
# File 'lib/pago/v2026_04/models.rb', line 15627
def initialize(
benefit_type:,
properties:
)
super()
assign(:benefit_type, benefit_type)
assign(:properties, properties)
end
|
Instance Attribute Details
#benefit_type ⇒ String
15622
15623
15624
|
# File 'lib/pago/v2026_04/models.rb', line 15622
def benefit_type
@benefit_type
end
|
15625
15626
15627
|
# File 'lib/pago/v2026_04/models.rb', line 15625
def properties
@properties
end
|
Class Method Details
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
|
# File 'lib/pago/v2026_04/models.rb', line 15638
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(
benefit_type: (data.key?("benefit_type") ? data["benefit_type"] : ::Pago::UNSET),
properties: (data.key?("properties") ? Models::CustomerBenefitGrantGitHubRepositoryPropertiesUpdate.from_json(data["properties"]) : ::Pago::UNSET)
),
data
)
end
|