Class: PutCollectionsCollectionIDRequestsRequestIDBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDRequestsRequestIDBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
30083 30084 30085 30086 30087 30088 30089 |
# File 'lib/schemas.rb', line 30083 def self.from_dynamic!(d) d = Types::Hash[d] new( put_collections_collection_id_requests_request_id_body_method: d["method"], put_collections_collection_id_requests_request_id_body_name: d["name"], ) end |
.from_json!(json) ⇒ Object
30091 30092 30093 |
# File 'lib/schemas.rb', line 30091 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
30095 30096 30097 30098 30099 30100 |
# File 'lib/schemas.rb', line 30095 def to_dynamic { "method" => put_collections_collection_id_requests_request_id_body_method, "name" => put_collections_collection_id_requests_request_id_body_name, } end |
#to_json(options = nil) ⇒ Object
30102 30103 30104 |
# File 'lib/schemas.rb', line 30102 def to_json( = nil) JSON.generate(to_dynamic, ) end |