Class: PostDetectedSecretsQueriesResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostDetectedSecretsQueriesResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22834 22835 22836 22837 22838 22839 22840 22841 |
# File 'lib/schemas.rb', line 22834 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
22843 22844 22845 |
# File 'lib/schemas.rb', line 22843 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22847 22848 22849 22850 22851 22852 22853 |
# File 'lib/schemas.rb', line 22847 def to_dynamic { "limit" => limit, "nextCursor" => next_cursor, "total" => total, } end |
#to_json(options = nil) ⇒ Object
22855 22856 22857 |
# File 'lib/schemas.rb', line 22855 def to_json( = nil) JSON.generate(to_dynamic, ) end |