Class: FriendlyShipping::Services::UpsJson::AccessToken
- Inherits:
-
AccessToken
- Object
- AccessToken
- FriendlyShipping::Services::UpsJson::AccessToken
- Defined in:
- lib/friendly_shipping/services/ups_json/access_token.rb
Overview
Represents an access token returned by UPS. The access token can be used to make API requests. Once it expires, a new token must be created.
Instance Attribute Summary collapse
-
#issued_at ⇒ Integer
readonly
The epoch time in ms when the token was issued.
Attributes inherited from AccessToken
Instance Method Summary collapse
-
#initialize(issued_at:, **other_kwargs) ⇒ AccessToken
constructor
A new instance of AccessToken.
Methods inherited from AccessToken
Constructor Details
#initialize(issued_at:, **other_kwargs) ⇒ AccessToken
Returns a new instance of AccessToken.
13 14 15 16 |
# File 'lib/friendly_shipping/services/ups_json/access_token.rb', line 13 def initialize(issued_at:, **other_kwargs) @issued_at = issued_at super(**other_kwargs) end |
Instance Attribute Details
#issued_at ⇒ Integer (readonly)
Returns the epoch time in ms when the token was issued.
10 11 12 |
# File 'lib/friendly_shipping/services/ups_json/access_token.rb', line 10 def issued_at @issued_at end |