Class: PayoneerApi::PayoneerToken

Inherits:
Base
  • Object
show all
Defined in:
lib/payoneer_api/payoneer_token.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ PayoneerToken

Returns a new instance of PayoneerToken.

Raises:



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

#tokenObject (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_sObject



14
15
16
# File 'lib/payoneer_api/payoneer_token.rb', line 14

def to_s
  uri.to_s
end

#uriObject



10
11
12
# File 'lib/payoneer_api/payoneer_token.rb', line 10

def uri
  URI.parse(token)
end