Class: GetApisAPIIDVersionsResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetApisAPIIDVersionsResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
6063 6064 6065 6066 6067 6068 6069 6070 |
# File 'lib/schemas.rb', line 6063 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
6072 6073 6074 |
# File 'lib/schemas.rb', line 6072 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
6076 6077 6078 6079 6080 6081 6082 |
# File 'lib/schemas.rb', line 6076 def to_dynamic { "limit" => limit, "nextCursor" => next_cursor, "total" => total, } end |
#to_json(options = nil) ⇒ Object
6084 6085 6086 |
# File 'lib/schemas.rb', line 6084 def to_json( = nil) JSON.generate(to_dynamic, ) end |