Class: PostCollectionsResponse401Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsResponse401Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22548 22549 22550 22551 22552 22553 22554 |
# File 'lib/schemas.rb', line 22548 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_collections_response401_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
22556 22557 22558 |
# File 'lib/schemas.rb', line 22556 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22560 22561 22562 22563 22564 22565 |
# File 'lib/schemas.rb', line 22560 def to_dynamic { "message" => , "name" => post_collections_response401_error_name, } end |
#to_json(options = nil) ⇒ Object
22567 22568 22569 |
# File 'lib/schemas.rb', line 22567 def to_json( = nil) JSON.generate(to_dynamic, ) end |