Class: GetEnvironmentsEnvironmentIDResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetEnvironmentsEnvironmentIDResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
9829 9830 9831 9832 9833 9834 |
# File 'lib/schemas.rb', line 9829 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"] ? GetEnvironmentsEnvironmentIDResponse401Error.from_dynamic!(d["error"]) : nil, ) end |
.from_json!(json) ⇒ Object
9836 9837 9838 |
# File 'lib/schemas.rb', line 9836 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
9840 9841 9842 9843 9844 |
# File 'lib/schemas.rb', line 9840 def to_dynamic { "error" => error&.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
9846 9847 9848 |
# File 'lib/schemas.rb', line 9846 def to_json( = nil) JSON.generate(to_dynamic, ) end |