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
1922 1923 1924 1925 1926 1927 1928 1929 |
# File 'lib/schemas.rb', line 1922 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
1931 1932 1933 |
# File 'lib/schemas.rb', line 1931 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1935 1936 1937 1938 1939 1940 1941 |
# File 'lib/schemas.rb', line 1935 def to_dynamic { "id" => id, "key" => key, "organizationId" => organization_id, } end |
#to_json(options = nil) ⇒ Object
1943 1944 1945 |
# File 'lib/schemas.rb', line 1943 def to_json( = nil) JSON.generate(to_dynamic, ) end |