Class: ListSecretsResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- ListSecretsResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1554 1555 1556 1557 1558 1559 |
# File 'lib/schemas.rb', line 1554 def self.from_dynamic!(d) d = Types::Hash[d] new( secrets: d.fetch("secrets").map { |x| SecretElement.from_dynamic!(x) }, ) end |
.from_json!(json) ⇒ Object
1561 1562 1563 |
# File 'lib/schemas.rb', line 1561 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1565 1566 1567 1568 1569 |
# File 'lib/schemas.rb', line 1565 def to_dynamic { "secrets" => secrets.map { |x| x.to_dynamic }, } end |
#to_json(options = nil) ⇒ Object
1571 1572 1573 |
# File 'lib/schemas.rb', line 1571 def to_json( = nil) JSON.generate(to_dynamic, ) end |