Class: AWSIamAuthMethod
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- AWSIamAuthMethod
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/schemas.rb', line 60 def self.from_dynamic!(d) d = Types::Hash[d] new( identity_id: d.fetch("identityId"), ) end |
.from_json!(json) ⇒ Object
67 68 69 |
# File 'lib/schemas.rb', line 67 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
71 72 73 74 75 |
# File 'lib/schemas.rb', line 71 def to_dynamic { "identityId" => identity_id, } end |
#to_json(options = nil) ⇒ Object
77 78 79 |
# File 'lib/schemas.rb', line 77 def to_json( = nil) JSON.generate(to_dynamic, ) end |