Class: Square::OAuth2::AccessToken

Inherits:
Rack::OAuth2::AccessToken::Bearer
  • Object
show all
Defined in:
lib/square/oauth2/access_token.rb

Instance Method Summary collapse

Constructor Details

#initialize(*options) ⇒ AccessToken

Returns a new instance of AccessToken.



4
5
6
7
8
# File 'lib/square/oauth2/access_token.rb', line 4

def initialize(*options)
  attributes = options.extract_options!
  attributes[:access_token] ||= options.first
  super attributes
end