Class: Pago::V2026_04::Models::HTTPValidationError
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ detail: "detail" }.freeze
- REQUIRED_KEYS =
[].freeze
Instance Attribute Summary collapse
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(detail: ::Pago::UNSET) ⇒ HTTPValidationError
constructor
A new instance of HTTPValidationError.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(detail: ::Pago::UNSET) ⇒ HTTPValidationError
Returns a new instance of HTTPValidationError.
26051 26052 26053 26054 26055 26056 |
# File 'lib/pago/v2026_04/models.rb', line 26051 def initialize( detail: ::Pago::UNSET ) super() assign(:detail, detail) end |
Instance Attribute Details
#detail ⇒ Array<Models::ValidationError> (readonly)
26049 26050 26051 |
# File 'lib/pago/v2026_04/models.rb', line 26049 def detail @detail end |
Class Method Details
.from_json(data) ⇒ HTTPValidationError?
26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 |
# File 'lib/pago/v2026_04/models.rb', line 26060 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( detail: (data.key?("detail") ? ::Pago::Serde.array(data["detail"]) { |item0| Models::ValidationError.from_json(item0) } : ::Pago::UNSET) ), data ) end |