Class: PostApisAPIIDCollectionsResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostApisAPIIDCollectionsResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
19254 19255 19256 19257 19258 19259 |
# File 'lib/schemas.rb', line 19254 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d["id"], ) end |
.from_json!(json) ⇒ Object
19261 19262 19263 |
# File 'lib/schemas.rb', line 19261 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
19265 19266 19267 19268 19269 |
# File 'lib/schemas.rb', line 19265 def to_dynamic { "id" => id, } end |
#to_json(options = nil) ⇒ Object
19271 19272 19273 |
# File 'lib/schemas.rb', line 19271 def to_json( = nil) JSON.generate(to_dynamic, ) end |