Class: Oauth::Contacts::OAuth2

Inherits:
Base
  • Object
show all
Defined in:
lib/oauth/contacts/oauth2.rb

Direct Known Subclasses

Google, Live

Constant Summary collapse

VERSION =
2.0

Instance Attribute Summary collapse

Attributes inherited from Base

#access_token, #callback_url, #consumer

Instance Method Summary collapse

Methods inherited from Base

#authorize_url, #contacts

Constructor Details

#initializeOAuth2

Returns a new instance of OAuth2.



13
14
15
# File 'lib/oauth/contacts/oauth2.rb', line 13

def initialize
  super
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



7
8
9
# File 'lib/oauth/contacts/oauth2.rb', line 7

def code
  @code
end

Instance Method Details

#versionObject



9
10
11
# File 'lib/oauth/contacts/oauth2.rb', line 9

def version
  VERSION
end