Class: GetWorkspacesResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetWorkspacesResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16763 16764 16765 16766 16767 16768 16769 |
# File 'lib/schemas.rb', line 16763 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
16771 16772 16773 |
# File 'lib/schemas.rb', line 16771 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16775 16776 16777 16778 16779 16780 |
# File 'lib/schemas.rb', line 16775 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
16782 16783 16784 |
# File 'lib/schemas.rb', line 16782 def to_json( = nil) JSON.generate(to_dynamic, ) end |