Class: UpdateSecretResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- UpdateSecretResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1622 1623 1624 1625 1626 1627 |
# File 'lib/schemas.rb', line 1622 def self.from_dynamic!(d) d = Types::Hash[d] new( secret: UpdateSecretResponseSecret.from_dynamic!(d.fetch("secret")), ) end |
.from_json!(json) ⇒ Object
1629 1630 1631 |
# File 'lib/schemas.rb', line 1629 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1633 1634 1635 1636 1637 |
# File 'lib/schemas.rb', line 1633 def to_dynamic { "secret" => secret.to_dynamic, } end |
#to_json(options = nil) ⇒ Object
1639 1640 1641 |
# File 'lib/schemas.rb', line 1639 def to_json( = nil) JSON.generate(to_dynamic, ) end |