Class: Pago::V2026_04::Models::CustomerBenefitGrantGitHubRepositoryPropertiesUpdate

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])
{
  account_id: "account_id"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["account_id"].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(account_id:) ⇒ CustomerBenefitGrantGitHubRepositoryPropertiesUpdate

Returns a new instance of CustomerBenefitGrantGitHubRepositoryPropertiesUpdate.

Parameters:

  • account_id: (String, nil)


15591
15592
15593
15594
15595
15596
# File 'lib/pago/v2026_04/models.rb', line 15591

def initialize(
  account_id:
)
  super()
  assign(:account_id, )
end

Instance Attribute Details

#account_idString? (readonly)

Returns:

  • (String, nil)


15589
15590
15591
# File 'lib/pago/v2026_04/models.rb', line 15589

def 
  @account_id
end

Class Method Details

.from_json(data) ⇒ CustomerBenefitGrantGitHubRepositoryPropertiesUpdate?

Parameters:

  • data (Hash, String, nil)

Returns:



15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
# File 'lib/pago/v2026_04/models.rb', line 15600

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(
      account_id: (data.key?("account_id") ? data["account_id"] : ::Pago::UNSET)
    ),
    data
  )
end