Class: GetDetectedSecretsSecretIDLocationsResponseMetaActivityFeedItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetDetectedSecretsSecretIDLocationsResponseMetaActivityFeedItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
9324 9325 9326 9327 9328 9329 9330 9331 |
# File 'lib/schemas.rb', line 9324 def self.from_dynamic!(d) d = Types::Hash[d] new( resolved_at: d["resolvedAt"], resolved_by: d["resolvedBy"], status: d["status"], ) end |
.from_json!(json) ⇒ Object
9333 9334 9335 |
# File 'lib/schemas.rb', line 9333 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
9337 9338 9339 9340 9341 9342 9343 |
# File 'lib/schemas.rb', line 9337 def to_dynamic { "resolvedAt" => resolved_at, "resolvedBy" => resolved_by, "status" => status, } end |
#to_json(options = nil) ⇒ Object
9345 9346 9347 |
# File 'lib/schemas.rb', line 9345 def to_json( = nil) JSON.generate(to_dynamic, ) end |