Class: PostDetectedSecretsQueriesResponseDataItem
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostDetectedSecretsQueriesResponseDataItem
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 |
# File 'lib/schemas.rb', line 22784 def self.from_dynamic!(d) d = Types::Hash[d] new( detected_at: d["detectedAt"], obfuscated_secret: d["obfuscatedSecret"], occurrences: d["occurrences"], resolution: d["resolution"], secret_hash: d["secretHash"], secret_id: d["secretId"], secret_type: d["secretType"], workspace_id: d["workspaceId"], workspace_visibility: d["workspaceVisibility"], ) end |
.from_json!(json) ⇒ Object
22799 22800 22801 |
# File 'lib/schemas.rb', line 22799 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 |
# File 'lib/schemas.rb', line 22803 def to_dynamic { "detectedAt" => detected_at, "obfuscatedSecret" => , "occurrences" => occurrences, "resolution" => resolution, "secretHash" => secret_hash, "secretId" => secret_id, "secretType" => secret_type, "workspaceId" => workspace_id, "workspaceVisibility" => workspace_visibility, } end |
#to_json(options = nil) ⇒ Object
22817 22818 22819 |
# File 'lib/schemas.rb', line 22817 def to_json( = nil) JSON.generate(to_dynamic, ) end |