Class: SecretIdentifierResponse
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- SecretIdentifierResponse
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1775 1776 1777 1778 1779 1780 1781 1782 |
# File 'lib/schemas.rb', line 1775 def self.from_dynamic!(d) d = Types::Hash[d] new( id: d.fetch("id"), key: d.fetch("key"), organization_id: d.fetch("organizationId"), ) end |
.from_json!(json) ⇒ Object
1784 1785 1786 |
# File 'lib/schemas.rb', line 1784 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1788 1789 1790 1791 1792 1793 1794 |
# File 'lib/schemas.rb', line 1788 def to_dynamic { "id" => id, "key" => key, "organizationId" => organization_id, } end |
#to_json(options = nil) ⇒ Object
1796 1797 1798 |
# File 'lib/schemas.rb', line 1796 def to_json( = nil) JSON.generate(to_dynamic, ) end |