Class: PutWorkspacesWorkspaceIDResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutWorkspacesWorkspaceIDResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
35139 35140 35141 35142 35143 35144 35145 |
# File 'lib/schemas.rb', line 35139 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
35147 35148 35149 |
# File 'lib/schemas.rb', line 35147 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
35151 35152 35153 35154 35155 35156 |
# File 'lib/schemas.rb', line 35151 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
35158 35159 35160 |
# File 'lib/schemas.rb', line 35158 def to_json( = nil) JSON.generate(to_dynamic, ) end |