Class: Pago::V2026_04::Models::BenefitGrantError
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::BenefitGrantError
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
message: "message",
type: "type",
timestamp: "timestamp"
}.freeze
- REQUIRED_KEYS =
["message", "type", "timestamp"].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(message:, type:, timestamp:) ⇒ BenefitGrantError
Returns a new instance of BenefitGrantError.
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
|
# File 'lib/pago/v2026_04/models.rb', line 5367
def initialize(
message:,
type:,
timestamp:
)
super()
assign(:message, message)
assign(:type, type)
assign(:timestamp, timestamp)
end
|
Instance Attribute Details
#message ⇒ String
5359
5360
5361
|
# File 'lib/pago/v2026_04/models.rb', line 5359
def message
@message
end
|
#timestamp ⇒ String
5365
5366
5367
|
# File 'lib/pago/v2026_04/models.rb', line 5365
def timestamp
@timestamp
end
|
#type ⇒ String
5362
5363
5364
|
# File 'lib/pago/v2026_04/models.rb', line 5362
def type
@type
end
|
Class Method Details
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
|
# File 'lib/pago/v2026_04/models.rb', line 5380
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(
message: (data.key?("message") ? data["message"] : ::Pago::UNSET),
type: (data.key?("type") ? data["type"] : ::Pago::UNSET),
timestamp: (data.key?("timestamp") ? data["timestamp"] : ::Pago::UNSET)
),
data
)
end
|