Class: AzureAuthMethod
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- AzureAuthMethod
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
87 88 89 90 91 92 |
# File 'lib/schemas.rb', line 87 def self.from_dynamic!(d) d = Types::Hash[d] new( identity_id: d.fetch("identityId"), ) end |
.from_json!(json) ⇒ Object
94 95 96 |
# File 'lib/schemas.rb', line 94 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
98 99 100 101 102 |
# File 'lib/schemas.rb', line 98 def to_dynamic { "identityId" => identity_id, } end |
#to_json(options = nil) ⇒ Object
104 105 106 |
# File 'lib/schemas.rb', line 104 def to_json( = nil) JSON.generate(to_dynamic, ) end |