Class: PostDetectedSecretsQueriesBody
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostDetectedSecretsQueriesBody
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 |
# File 'lib/schemas.rb', line 22712 def self.from_dynamic!(d) d = Types::Hash[d] new( resolved: d["resolved"], secret_types: d["secretTypes"], statuses: d["statuses"], workspace_ids: d["workspaceIds"], workspace_visiblities: d["workspaceVisiblities"], ) end |
.from_json!(json) ⇒ Object
22723 22724 22725 |
# File 'lib/schemas.rb', line 22723 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22727 22728 22729 22730 22731 22732 22733 22734 22735 |
# File 'lib/schemas.rb', line 22727 def to_dynamic { "resolved" => resolved, "secretTypes" => secret_types, "statuses" => statuses, "workspaceIds" => workspace_ids, "workspaceVisiblities" => workspace_visiblities, } end |
#to_json(options = nil) ⇒ Object
22737 22738 22739 |
# File 'lib/schemas.rb', line 22737 def to_json( = nil) JSON.generate(to_dynamic, ) end |