Class: PostEnvironmentsResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostEnvironmentsResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
23367 23368 23369 23370 23371 23372 |
# File 'lib/schemas.rb', line 23367 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? PostEnvironmentsResponse403Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
23374 23375 23376 |
# File 'lib/schemas.rb', line 23374 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
23378 23379 23380 23381 23382 |
# File 'lib/schemas.rb', line 23378 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
23384 23385 23386 |
# File 'lib/schemas.rb', line 23384 def to_json( = nil) JSON.generate(to_dynamic, ) end |