Class: Wheelbarrow::Authenticator
- Inherits:
-
Object
- Object
- Wheelbarrow::Authenticator
- Includes:
- Singleton
- Defined in:
- lib/wheelbarrow/authenticator.rb
Instance Attribute Summary collapse
-
#oauth_client ⇒ Object
readonly
Returns the value of attribute oauth_client.
Instance Method Summary collapse
-
#initialize ⇒ Authenticator
constructor
A new instance of Authenticator.
Constructor Details
#initialize ⇒ Authenticator
Returns a new instance of Authenticator.
13 14 15 16 17 |
# File 'lib/wheelbarrow/authenticator.rb', line 13 def initialize @config = Config.instance.fetch authenticate Config.instance.dump @config end |
Instance Attribute Details
#oauth_client ⇒ Object (readonly)
Returns the value of attribute oauth_client.
11 12 13 |
# File 'lib/wheelbarrow/authenticator.rb', line 11 def oauth_client @oauth_client end |