Class: PutCollectionsCollectionIDResponsesResponseIDResponse401ErrorDetails
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDResponsesResponseIDResponse401ErrorDetails
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31239 31240 31241 31242 31243 31244 31245 31246 |
# File 'lib/schemas.rb', line 31239 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
31248 31249 31250 |
# File 'lib/schemas.rb', line 31248 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31252 31253 31254 31255 31256 31257 31258 |
# File 'lib/schemas.rb', line 31252 def to_dynamic { "model" => model, "model_id" => model_id, "owner" => owner, } end |
#to_json(options = nil) ⇒ Object
31260 31261 31262 |
# File 'lib/schemas.rb', line 31260 def to_json( = nil) JSON.generate(to_dynamic, ) end |