Class: PaygatePk::Contracts::BearerToken
- Inherits:
-
Struct
- Object
- Struct
- PaygatePk::Contracts::BearerToken
- Defined in:
- lib/paygate_pk/contracts/bearer_token.rb
Overview
Normalized wrapper for /token response. Some docs show only “refresh_token”; we expose both.
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#code ⇒ Object
Returns the value of attribute code.
-
#expiry ⇒ Object
Returns the value of attribute expiry.
-
#message ⇒ Object
Returns the value of attribute message.
-
#raw ⇒ Object
Returns the value of attribute raw.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token
8 9 10 |
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8 def access_token @access_token end |
#code ⇒ Object
Returns the value of attribute code
8 9 10 |
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8 def code @code end |
#expiry ⇒ Object
Returns the value of attribute expiry
8 9 10 |
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8 def expiry @expiry end |
#message ⇒ Object
Returns the value of attribute message
8 9 10 |
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8 def @message end |
#raw ⇒ Object
Returns the value of attribute raw
8 9 10 |
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8 def raw @raw end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token
8 9 10 |
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8 def refresh_token @refresh_token end |