Class: PostCollectionsCollectionIDRequestsBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostCollectionsCollectionIDRequestsBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
20966 20967 20968 20969 20970 20971 |
# File 'lib/schemas.rb', line 20966 def self.from_dynamic!(d) d = Types::Hash[d] new( post_collections_collection_id_requests_body_name: d["name"], ) end |
.from_json!(json) ⇒ Object
20973 20974 20975 |
# File 'lib/schemas.rb', line 20973 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
20977 20978 20979 20980 20981 |
# File 'lib/schemas.rb', line 20977 def to_dynamic { "name" => post_collections_collection_id_requests_body_name, } end |
#to_json(options = nil) ⇒ Object
20983 20984 20985 |
# File 'lib/schemas.rb', line 20983 def to_json( = nil) JSON.generate(to_dynamic, ) end |