Class: OutlookCalendar::AccessToken

Inherits:
Object
  • Object
show all
Defined in:
lib/outlook_calendar/user/access_token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, client_id, client_secret, scope, redirect_uri) ⇒ AccessToken

Returns a new instance of AccessToken.



5
6
7
8
9
10
11
# File 'lib/outlook_calendar/user/access_token.rb', line 5

def initialize(code, client_id, client_secret, scope, redirect_uri)
  @code = code
  @client_id = client_id
  @client_secret = client_secret
  @scope = scope
  @redirect_uri = redirect_uri
end

Instance Attribute Details

#client_idObject (readonly)

Returns the value of attribute client_id.



3
4
5
# File 'lib/outlook_calendar/user/access_token.rb', line 3

def client_id
  @client_id
end

#client_secretObject (readonly)

Returns the value of attribute client_secret.



3
4
5
# File 'lib/outlook_calendar/user/access_token.rb', line 3

def client_secret
  @client_secret
end

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/outlook_calendar/user/access_token.rb', line 3

def code
  @code
end

#redirect_uriObject (readonly)

Returns the value of attribute redirect_uri.



3
4
5
# File 'lib/outlook_calendar/user/access_token.rb', line 3

def redirect_uri
  @redirect_uri
end

#scopeObject (readonly)

Returns the value of attribute scope.



3
4
5
# File 'lib/outlook_calendar/user/access_token.rb', line 3

def scope
  @scope
end

Instance Method Details

#callObject



13
14
15
# File 'lib/outlook_calendar/user/access_token.rb', line 13

def call
  response
end