Class: Headsail::OAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/headsail/oauth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(oauth) ⇒ OAuth

Returns a new instance of OAuth.



7
8
9
10
11
# File 'lib/headsail/oauth.rb', line 7

def initialize(oauth)
  return false if oauth.nil?
  @oauth = oauth
  @access_token = oauth_token
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



5
6
7
# File 'lib/headsail/oauth.rb', line 5

def access_token
  @access_token
end