Class: GetDetectedSecretsSecretIDLocationsResponseMeta
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetDetectedSecretsSecretIDLocationsResponseMeta
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 |
# File 'lib/schemas.rb', line 9375 def self.from_dynamic!(d) d = Types::Hash[d] new( activity_feed: d["activityFeed"]&.map { |x| GetDetectedSecretsSecretIDLocationsResponseMetaActivityFeedItem.from_dynamic!(x) }, cursor: d["cursor"], limit: d["limit"], next_cursor: d["nextCursor"], obfuscated_secret: d["obfuscatedSecret"], secret_hash: d["secretHash"], secret_type: d["secretType"], total: d["total"], ) end |
.from_json!(json) ⇒ Object
9389 9390 9391 |
# File 'lib/schemas.rb', line 9389 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 |
# File 'lib/schemas.rb', line 9393 def to_dynamic { "activityFeed" => activity_feed&.map { |x| x.to_dynamic }, "cursor" => cursor, "limit" => limit, "nextCursor" => next_cursor, "obfuscatedSecret" => , "secretHash" => secret_hash, "secretType" => secret_type, "total" => total, } end |
#to_json(options = nil) ⇒ Object
9406 9407 9408 |
# File 'lib/schemas.rb', line 9406 def to_json( = nil) JSON.generate(to_dynamic, ) end |