Class: OutlookCalendar::AccessToken
- Inherits:
-
Object
- Object
- OutlookCalendar::AccessToken
- Defined in:
- lib/outlook_calendar/user/access_token.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
readonly
Returns the value of attribute client_secret.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#redirect_uri ⇒ Object
readonly
Returns the value of attribute redirect_uri.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(code, client_id, client_secret, scope, redirect_uri) ⇒ AccessToken
constructor
A new instance of AccessToken.
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_id ⇒ Object (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_secret ⇒ Object (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 |
#code ⇒ Object (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_uri ⇒ Object (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 |
#scope ⇒ Object (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
#call ⇒ Object
13 14 15 |
# File 'lib/outlook_calendar/user/access_token.rb', line 13 def call response end |