Class: Obscured::Doorman::Providers::GitHub::AccessToken

Inherits:
Object
  • Object
show all
Defined in:
lib/obscured-doorman/providers/github/access_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_tokenObject

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

#emailsObject

Returns the value of attribute emails.



11
12
13
# File 'lib/obscured-doorman/providers/github/access_token.rb', line 11

def emails
  @emails
end

#scopeObject

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_typeObject

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