Class: Zesty::Auth
- Inherits:
-
Object
- Object
- Zesty::Auth
- Defined in:
- lib/zesty/auth.rb
Constant Summary collapse
- AUTH_URL =
"https://svc.zesty.io/auth"
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**options) ⇒ Auth
constructor
A new instance of Auth.
- #login(email, password) ⇒ Object
- #verify_token(token) ⇒ Object
Constructor Details
#initialize(**options) ⇒ Auth
Returns a new instance of Auth.
12 13 14 |
# File 'lib/zesty/auth.rb', line 12 def initialize(**) @options = end |
Class Method Details
.get_token(email, password) ⇒ Object
8 9 10 |
# File 'lib/zesty/auth.rb', line 8 def self.get_token(email, password) self.new.login(email, password).dig(:meta, :token) end |