Class: AwsIamAuthLoginClass
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- AwsIamAuthLoginClass
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
352 353 354 355 356 357 |
# File 'lib/schemas.rb', line 352 def self.from_dynamic!(d) d = Types::Hash[d] new( identity_id: d.fetch("identityId"), ) end |
.from_json!(json) ⇒ Object
359 360 361 |
# File 'lib/schemas.rb', line 359 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
363 364 365 366 367 |
# File 'lib/schemas.rb', line 363 def to_dynamic { "identityId" => identity_id, } end |
#to_json(options = nil) ⇒ Object
369 370 371 |
# File 'lib/schemas.rb', line 369 def to_json( = nil) JSON.generate(to_dynamic, ) end |