Class: PayoneerApi::PayoneerToken
- Defined in:
- lib/payoneer_api/payoneer_token.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ PayoneerToken
constructor
A new instance of PayoneerToken.
- #to_s ⇒ Object
- #uri ⇒ Object
Constructor Details
#initialize(attrs = {}) ⇒ PayoneerToken
Returns a new instance of PayoneerToken.
5 6 7 8 |
# File 'lib/payoneer_api/payoneer_token.rb', line 5 def initialize(attrs = {}) super raise PayoneerException, attrs unless token end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/payoneer_api/payoneer_token.rb', line 3 def token @token end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/payoneer_api/payoneer_token.rb', line 14 def to_s uri.to_s end |
#uri ⇒ Object
10 11 12 |
# File 'lib/payoneer_api/payoneer_token.rb', line 10 def uri URI.parse(token) end |