Class: Obscured::Doorman::Providers::GitHub::AccessToken
- Inherits:
-
Object
- Object
- Obscured::Doorman::Providers::GitHub::AccessToken
- Defined in:
- lib/obscured-doorman/providers/github/access_token.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#emails ⇒ Object
Returns the value of attribute emails.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#token_type ⇒ Object
Returns the value of attribute token_type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AccessToken
constructor
A new instance of AccessToken.
Constructor Details
#initialize(attributes = {}) ⇒ AccessToken
Returns a new instance of AccessToken.
13 14 15 16 17 18 |
# File 'lib/obscured-doorman/providers/github/access_token.rb', line 13 def initialize(attributes = {}) @access_token = attributes[:access_token] @token_type = attributes[:token_type] @scopes = attributes[:scopes] @emails = attributes[:emails] end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
8 9 10 |
# File 'lib/obscured-doorman/providers/github/access_token.rb', line 8 def access_token @access_token end |
#emails ⇒ Object
Returns the value of attribute emails.
11 12 13 |
# File 'lib/obscured-doorman/providers/github/access_token.rb', line 11 def emails @emails end |
#scope ⇒ Object
Returns the value of attribute scope.
10 11 12 |
# File 'lib/obscured-doorman/providers/github/access_token.rb', line 10 def scope @scope end |
#token_type ⇒ Object
Returns the value of attribute token_type.
9 10 11 |
# File 'lib/obscured-doorman/providers/github/access_token.rb', line 9 def token_type @token_type end |