Class: Wheelbarrow::Authenticator

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/wheelbarrow/authenticator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAuthenticator

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_clientObject (readonly)

Returns the value of attribute oauth_client.



11
12
13
# File 'lib/wheelbarrow/authenticator.rb', line 11

def oauth_client
  @oauth_client
end