Class: PostCollectionsForkCollectionIDResponse500Error
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsForkCollectionIDResponse500Error
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22023 22024 22025 22026 22027 22028 22029 |
# File 'lib/schemas.rb', line 22023 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], post_collections_fork_collection_id_response500_error_name: d["name"], ) end |
.from_json!(json) ⇒ Object
22031 22032 22033 |
# File 'lib/schemas.rb', line 22031 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22035 22036 22037 22038 22039 22040 |
# File 'lib/schemas.rb', line 22035 def to_dynamic { "message" => , "name" => post_collections_fork_collection_id_response500_error_name, } end |
#to_json(options = nil) ⇒ Object
22042 22043 22044 |
# File 'lib/schemas.rb', line 22042 def to_json( = nil) JSON.generate(to_dynamic, ) end |