Class: GetTagsSlugEntitiesResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetTagsSlugEntitiesResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16336 16337 16338 16339 16340 16341 16342 |
# File 'lib/schemas.rb', line 16336 def self.from_dynamic!(d) d = Types::Hash[d] new( count: d.fetch("count"), next_cursor: d["nextCursor"], ) end |
.from_json!(json) ⇒ Object
16344 16345 16346 |
# File 'lib/schemas.rb', line 16344 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16348 16349 16350 16351 16352 16353 |
# File 'lib/schemas.rb', line 16348 def to_dynamic { "count" => count, "nextCursor" => next_cursor, } end |
#to_json(options = nil) ⇒ Object
16355 16356 16357 |
# File 'lib/schemas.rb', line 16355 def to_json( = nil) JSON.generate(to_dynamic, ) end |