Class: GetCollectionsCollectionIDResponse401Error
- Inherits:
- 
      Dry::Struct
      
        - Object
- Dry::Struct
- GetCollectionsCollectionIDResponse401Error
 
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
| 8120 8121 8122 8123 8124 8125 8126 | # File 'lib/schemas.rb', line 8120 def self.from_dynamic!(d) d = Types::Hash[d] new( message: d["message"], get_collections_collection_id_response401_error_name: d["name"], ) end | 
.from_json!(json) ⇒ Object
| 8128 8129 8130 | # File 'lib/schemas.rb', line 8128 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end | 
Instance Method Details
#to_dynamic ⇒ Object
| 8132 8133 8134 8135 8136 8137 | # File 'lib/schemas.rb', line 8132 def to_dynamic { "message" => , "name" => get_collections_collection_id_response401_error_name, } end | 
#to_json(options = nil) ⇒ Object
| 8139 8140 8141 | # File 'lib/schemas.rb', line 8139 def to_json( = nil) JSON.generate(to_dynamic, ) end |