Class: GetCollectionsCollectionIDResponse429
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDResponse429
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8177 8178 8179 8180 8181 8182 8183 |
# File 'lib/schemas.rb', line 8177 def self.from_dynamic!(d) d = Types::Hash[d] new( error: d["error"], message: d["message"], ) end |
.from_json!(json) ⇒ Object
8185 8186 8187 |
# File 'lib/schemas.rb', line 8185 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8189 8190 8191 8192 8193 8194 |
# File 'lib/schemas.rb', line 8189 def to_dynamic { "error" => error, "message" => , } end |
#to_json(options = nil) ⇒ Object
8196 8197 8198 |
# File 'lib/schemas.rb', line 8196 def to_json( = nil) JSON.generate(to_dynamic, ) end |