Class: PostCollectionsCollectionIDResponsesBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDResponsesBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
21346 21347 21348 21349 21350 21351 |
# File 'lib/schemas.rb', line 21346 def self.from_dynamic!(d) d = Types::Hash[d] new( post_collections_collection_id_responses_body_name: d["name"], ) end |
.from_json!(json) ⇒ Object
21353 21354 21355 |
# File 'lib/schemas.rb', line 21353 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
21357 21358 21359 21360 21361 |
# File 'lib/schemas.rb', line 21357 def to_dynamic { "name" => post_collections_collection_id_responses_body_name, } end |
#to_json(options = nil) ⇒ Object
21363 21364 21365 |
# File 'lib/schemas.rb', line 21363 def to_json( = nil) JSON.generate(to_dynamic, ) end |