Class: GetApisAPIIDCollectionsCollectionIDResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDCollectionsCollectionIDResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 |
# File 'lib/schemas.rb', line 4455 def self.from_dynamic!(d) d = Types::Hash[d] new( detail: d["detail"], instance: d["instance"], status: d["status"], title: d["title"], get_apis_api_id_collections_collection_id_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
4466 4467 4468 |
# File 'lib/schemas.rb', line 4466 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
4470 4471 4472 4473 4474 4475 4476 4477 4478 |
# File 'lib/schemas.rb', line 4470 def to_dynamic { "detail" => detail, "instance" => instance, "status" => status, "title" => title, "type" => get_apis_api_id_collections_collection_id_response401_type, } end |
#to_json(options = nil) ⇒ Object
4480 4481 4482 |
# File 'lib/schemas.rb', line 4480 def to_json( = nil) JSON.generate(to_dynamic, ) end |