Class: Authenticator
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Authenticator
- Defined in:
- lib/schemas.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_dynamic!(d) ⇒ Object
1306 1307 1308 1309 1310 |
# File 'lib/schemas.rb', line 1306 def self.from_dynamic!(d) d = Types::Hash[d] new( ) end |
.from_json!(json) ⇒ Object
1312 1313 1314 |
# File 'lib/schemas.rb', line 1312 def self.from_json!(json) from_dynamic!(JSON.parse(json)) end |
Instance Method Details
#to_dynamic ⇒ Object
1316 1317 1318 1319 |
# File 'lib/schemas.rb', line 1316 def to_dynamic { } end |
#to_json(options = nil) ⇒ Object
1321 1322 1323 |
# File 'lib/schemas.rb', line 1321 def to_json( = nil) JSON.generate(to_dynamic, ) end |