Class: GetApisResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6664 6665 6666 6667 6668 6669 6670 6671 |
# File 'lib/schemas.rb', line 6664 def self.from_dynamic!(d) d = Types::Hash[d] new( limit: d["limit"], next_cursor: d["nextCursor"], total: d["total"], ) end |
.from_json!(json) ⇒ Object
6673 6674 6675 |
# File 'lib/schemas.rb', line 6673 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6677 6678 6679 6680 6681 6682 6683 |
# File 'lib/schemas.rb', line 6677 def to_dynamic { "limit" => limit, "nextCursor" => next_cursor, "total" => total, } end |
#to_json(options = nil) ⇒ Object
6685 6686 6687 |
# File 'lib/schemas.rb', line 6685 def to_json( = nil) JSON.generate(to_dynamic, ) end |