Class: PostDetectedSecretsQueriesResponse400
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- PostDetectedSecretsQueriesResponse400
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
22904 22905 22906 22907 22908 22909 22910 22911 22912 |
# File 'lib/schemas.rb', line 22904 def self.from_dynamic!(d) d = Types::Hash[d] new( instance: d["instance"], status: d["status"], title: d["title"], post_detected_secrets_queries_response400_type: d["type"], ) end |
.from_json!(json) ⇒ Object
22914 22915 22916 |
# File 'lib/schemas.rb', line 22914 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
22918 22919 22920 22921 22922 22923 22924 22925 |
# File 'lib/schemas.rb', line 22918 def to_dynamic { "instance" => instance, "status" => status, "title" => title, "type" => post_detected_secrets_queries_response400_type, } end |
#to_json(options = nil) ⇒ Object
22927 22928 22929 |
# File 'lib/schemas.rb', line 22927 def to_json( = nil) JSON.generate(to_dynamic, ) end |