Class: GetNetworkPrivateResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetNetworkPrivateResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
13854 13855 13856 13857 13858 13859 13860 13861 |
# File 'lib/schemas.rb', line 13854 def self.from_dynamic!(d) d = Types::Hash[d] new( limit: d["limit"], offset: d["offset"], total_count: d["totalCount"], ) end |
.from_json!(json) ⇒ Object
13863 13864 13865 |
# File 'lib/schemas.rb', line 13863 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
13867 13868 13869 13870 13871 13872 13873 |
# File 'lib/schemas.rb', line 13867 def to_dynamic { "limit" => limit, "offset" => offset, "totalCount" => total_count, } end |
#to_json(options = nil) ⇒ Object
13875 13876 13877 |
# File 'lib/schemas.rb', line 13875 def to_json( = nil) JSON.generate(to_dynamic, ) end |