Class: PutCollectionsCollectionIDTagsResponseTagsItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PutCollectionsCollectionIDTagsResponseTagsItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
31522 31523 31524 31525 31526 31527 |
# File 'lib/schemas.rb', line 31522 def self.from_dynamic!(d) d = Types::Hash[d] new( slug: d["slug"], ) end |
.from_json!(json) ⇒ Object
31529 31530 31531 |
# File 'lib/schemas.rb', line 31529 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
31533 31534 31535 31536 31537 |
# File 'lib/schemas.rb', line 31533 def to_dynamic { "slug" => slug, } end |
#to_json(options = nil) ⇒ Object
31539 31540 31541 |
# File 'lib/schemas.rb', line 31539 def to_json( = nil) JSON.generate(to_dynamic, ) end |