Class: GetSecretTypesResponse403
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GetSecretTypesResponse403
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
16199 16200 16201 16202 16203 16204 16205 16206 16207 |
# File 'lib/schemas.rb', line 16199 def self.from_dynamic!(d) d = Types::Hash[d] new( instance: d["instance"], status: d["status"], title: d["title"], get_secret_types_response403_type: d["type"], ) end |
.from_json!(json) ⇒ Object
16209 16210 16211 |
# File 'lib/schemas.rb', line 16209 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
16213 16214 16215 16216 16217 16218 16219 16220 |
# File 'lib/schemas.rb', line 16213 def to_dynamic { "instance" => instance, "status" => status, "title" => title, "type" => get_secret_types_response403_type, } end |
#to_json(options = nil) ⇒ Object
16222 16223 16224 |
# File 'lib/schemas.rb', line 16222 def to_json( = nil) JSON.generate(to_dynamic, ) end |