Class: GCPIDTokenAuthMethod
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- GCPIDTokenAuthMethod
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
146 147 148 149 150 151 |
# File 'lib/schemas.rb', line 146 def self.from_dynamic!(d) d = Types::Hash[d] new( identity_id: d.fetch("identityId"), ) end |
.from_json!(json) ⇒ Object
153 154 155 |
# File 'lib/schemas.rb', line 153 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
157 158 159 160 161 |
# File 'lib/schemas.rb', line 157 def to_dynamic { "identityId" => identity_id, } end |
#to_json(options = nil) ⇒ Object
163 164 165 |
# File 'lib/schemas.rb', line 163 def to_json( = nil) JSON.generate(to_dynamic, ) end |