Class: DeleteCollectionsCollectionIDFoldersFolderIDResponse401ErrorDetails
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- DeleteCollectionsCollectionIDFoldersFolderIDResponse401ErrorDetails
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
775 776 777 778 779 780 781 782 |
# File 'lib/schemas.rb', line 775 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
784 785 786 |
# File 'lib/schemas.rb', line 784 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
788 789 790 791 792 793 794 |
# File 'lib/schemas.rb', line 788 def to_dynamic { "model" => model, "model_id" => model_id, "owner" => owner, } end |
#to_json(options = nil) ⇒ Object
796 797 798 |
# File 'lib/schemas.rb', line 796 def to_json( = nil) JSON.generate(to_dynamic, ) end |