Class: TimeDoctor::Auth
- Inherits:
-
Object
- Object
- TimeDoctor::Auth
- Defined in:
- lib/timedoctor/auth.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #fetch_token ⇒ Object
-
#initialize(config) ⇒ Auth
constructor
A new instance of Auth.
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/timedoctor/auth.rb', line 7 def config @config end |
Instance Method Details
#fetch_token ⇒ Object
9 10 11 |
# File 'lib/timedoctor/auth.rb', line 9 def fetch_token TimeDoctor::Token.new(config).fetch end |