Class: Podio::OAuthToken
- Inherits:
-
Struct
- Object
- Struct
- Podio::OAuthToken
- Defined in:
- lib/podio.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#expires_in ⇒ Object
Returns the value of attribute expires_in.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#refreshed ⇒ Object
Returns the value of attribute refreshed.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ OAuthToken
constructor
A new instance of OAuthToken.
Constructor Details
#initialize(params = {}) ⇒ OAuthToken
Returns a new instance of OAuthToken.
58 59 60 61 62 63 64 |
# File 'lib/podio.rb', line 58 def initialize(params = {}) self.access_token = params['access_token'] self.refresh_token = params['refresh_token'] self.reference = params['ref'] self.expires_at = Time.now + params['expires_in'] if params['expires_in'] self.expires_in = params['expires_in'] if params['expires_in'] end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token
57 58 59 |
# File 'lib/podio.rb', line 57 def access_token @access_token end |
#expires_at ⇒ Object
Returns the value of attribute expires_at
57 58 59 |
# File 'lib/podio.rb', line 57 def expires_at @expires_at end |
#expires_in ⇒ Object
Returns the value of attribute expires_in
57 58 59 |
# File 'lib/podio.rb', line 57 def expires_in @expires_in end |
#reference ⇒ Object
Returns the value of attribute reference
57 58 59 |
# File 'lib/podio.rb', line 57 def reference @reference end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token
57 58 59 |
# File 'lib/podio.rb', line 57 def refresh_token @refresh_token end |
#refreshed ⇒ Object
Returns the value of attribute refreshed
57 58 59 |
# File 'lib/podio.rb', line 57 def refreshed @refreshed end |