Class: Pago::V2026_04::Models::NotPermitted
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::NotPermitted
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
error: "error",
detail: "detail"
}.freeze
- REQUIRED_KEYS =
["error", "detail"].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(error:, detail:) ⇒ NotPermitted
Returns a new instance of NotPermitted.
31488
31489
31490
31491
31492
31493
31494
31495
|
# File 'lib/pago/v2026_04/models.rb', line 31488
def initialize(
error:,
detail:
)
super()
assign(:error, error)
assign(:detail, detail)
end
|
Instance Attribute Details
#detail ⇒ String
31486
31487
31488
|
# File 'lib/pago/v2026_04/models.rb', line 31486
def detail
@detail
end
|
#error ⇒ String
31483
31484
31485
|
# File 'lib/pago/v2026_04/models.rb', line 31483
def error
@error
end
|
Class Method Details
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
|
# File 'lib/pago/v2026_04/models.rb', line 31499
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(
error: (data.key?("error") ? data["error"] : ::Pago::UNSET),
detail: (data.key?("detail") ? data["detail"] : ::Pago::UNSET)
),
data
)
end
|