Class: DeleteCollectionsCollectionIDRequestsRequestIDResponseData
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDRequestsRequestIDResponseData
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1007 1008 1009 1010 1011 1012 1013 |
# File 'lib/schemas.rb', line 1007 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], owner: d["owner"], ) end |
.from_json!(json) ⇒ Object
1015 1016 1017 |
# File 'lib/schemas.rb', line 1015 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1019 1020 1021 1022 1023 1024 |
# File 'lib/schemas.rb', line 1019 def to_dynamic { "id" => id, "owner" => owner, } end |
#to_json(options = nil) ⇒ Object
1026 1027 1028 |
# File 'lib/schemas.rb', line 1026 def to_json( = nil) JSON.generate(to_dynamic, ) end |