Class: GetCollectionsCollectionIDTagsResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetCollectionsCollectionIDTagsResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
8626 8627 8628 8629 8630 8631 |
# File 'lib/schemas.rb', line 8626 def self.from_dynamic!(d) d = Types::Hash[d] new( tags: d["tags"]&.map { |x| GetCollectionsCollectionIDTagsResponseTagsItem.from_dynamic!(x) }, ) end |
.from_json!(json) ⇒ Object
8633 8634 8635 |
# File 'lib/schemas.rb', line 8633 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
8637 8638 8639 8640 8641 |
# File 'lib/schemas.rb', line 8637 def to_dynamic { "tags" => &.map { |x| x.to_dynamic }, } end |
#to_json(options = nil) ⇒ Object
8643 8644 8645 |
# File 'lib/schemas.rb', line 8643 def to_json( = nil) JSON.generate(to_dynamic, ) end |