Class: OutlookCalendar::RefreshToken

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(refresh_token, client_id, client_secret, scope, redirect_uri) ⇒ RefreshToken

Returns a new instance of RefreshToken.



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

def initialize(refresh_token, client_id, client_secret, scope, redirect_uri)
  @refresh_token = refresh_token
  @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/refresh_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/refresh_token.rb', line 3

def client_secret
  @client_secret
end

#redirect_uriObject (readonly)

Returns the value of attribute redirect_uri.



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

def redirect_uri
  @redirect_uri
end

#refresh_tokenObject (readonly)

Returns the value of attribute refresh_token.



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

def refresh_token
  @refresh_token
end

#scopeObject (readonly)

Returns the value of attribute scope.



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

def scope
  @scope
end

Instance Method Details

#callObject



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

def call
  response
end