Class: PutCollectionsCollectionIDResponsesResponseIDBodyResponseCode
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDBodyResponseCode
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30977 30978 30979 30980 30981 30982 30983 |
# File 'lib/schemas.rb', line 30977 def self.from_dynamic!(d) d = Types::Hash[d] new( code: d["code"], put_collections_collection_id_responses_response_id_body_response_code_name: d["name"], ) end |
.from_json!(json) ⇒ Object
30985 30986 30987 |
# File 'lib/schemas.rb', line 30985 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30989 30990 30991 30992 30993 30994 |
# File 'lib/schemas.rb', line 30989 def to_dynamic { "code" => code, "name" => put_collections_collection_id_responses_response_id_body_response_code_name, } end |
#to_json(options = nil) ⇒ Object
30996 30997 30998 |
# File 'lib/schemas.rb', line 30996 def to_json( = nil) JSON.generate(to_dynamic, ) end |