Class: DeleteCollectionsCollectionIDResponsesResponseIDResponse404ErrorDetails
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDResponsesResponseIDResponse404ErrorDetails
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'lib/schemas.rb', line 1791 def self.from_dynamic!(d) d = Types::Hash[d] new( model: d["model"], model_id: d["model_id"], owner: d["owner"], ) end |
.from_json!(json) ⇒ Object
1800 1801 1802 |
# File 'lib/schemas.rb', line 1800 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1804 1805 1806 1807 1808 1809 1810 |
# File 'lib/schemas.rb', line 1804 def to_dynamic { "model" => model, "model_id" => model_id, "owner" => owner, } end |
#to_json(options = nil) ⇒ Object
1812 1813 1814 |
# File 'lib/schemas.rb', line 1812 def to_json( = nil) JSON.generate(to_dynamic, ) end |