Class: PostCollectionsResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22637 22638 22639 22640 22641 22642 22643 |
# File 'lib/schemas.rb', line 22637 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_collections_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
22645 22646 22647 |
# File 'lib/schemas.rb', line 22645 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22649 22650 22651 22652 22653 22654 |
# File 'lib/schemas.rb', line 22649 def to_dynamic { "message" => , "name" => post_collections_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
22656 22657 22658 |
# File 'lib/schemas.rb', line 22656 def to_json( = nil) JSON.generate(to_dynamic, ) end |