Class: FriendlyShipping::Services::USPSShip::AccessToken
- Inherits:
-
AccessToken
- Object
- AccessToken
- FriendlyShipping::Services::USPSShip::AccessToken
- Defined in:
- lib/friendly_shipping/services/usps_ship/access_token.rb
Overview
Represents an access token returned by USPS Ship. The access token can be used to make API requests. Once it expires, a new token must be created.
Instance Attribute Summary collapse
-
#token_type ⇒ String
readonly
The token's type.
Attributes inherited from AccessToken
Instance Method Summary collapse
-
#initialize(token_type:, **other_kwargs) ⇒ AccessToken
constructor
A new instance of AccessToken.
Methods inherited from AccessToken
Constructor Details
#initialize(token_type:, **other_kwargs) ⇒ AccessToken
Returns a new instance of AccessToken.
15 16 17 18 |
# File 'lib/friendly_shipping/services/usps_ship/access_token.rb', line 15 def initialize(token_type:, **other_kwargs) @token_type = token_type super(**other_kwargs) end |
Instance Attribute Details
#token_type ⇒ String (readonly)
Returns the token's type.
12 13 14 |
# File 'lib/friendly_shipping/services/usps_ship/access_token.rb', line 12 def token_type @token_type end |