Class: PostDetectedSecretsQueriesResponse401
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostDetectedSecretsQueriesResponse401
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22946 22947 22948 22949 22950 22951 22952 22953 22954 |
# File 'lib/schemas.rb', line 22946 def self.from_dynamic!(d) d = Types::Hash[d] new( instance: d["instance"], status: d["status"], title: d["title"], post_detected_secrets_queries_response401_type: d["type"], ) end |
.from_json!(json) ⇒ Object
22956 22957 22958 |
# File 'lib/schemas.rb', line 22956 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22960 22961 22962 22963 22964 22965 22966 22967 |
# File 'lib/schemas.rb', line 22960 def to_dynamic { "instance" => instance, "status" => status, "title" => title, "type" => post_detected_secrets_queries_response401_type, } end |
#to_json(options = nil) ⇒ Object
22969 22970 22971 |
# File 'lib/schemas.rb', line 22969 def to_json( = nil) JSON.generate(to_dynamic, ) end |