Class: PaysonAPI::V1::Requests::PaymentDetails
- Inherits:
-
Object
- Object
- PaysonAPI::V1::Requests::PaymentDetails
- Defined in:
- lib/payson_api/v1/requests/payment_details.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token) ⇒ PaymentDetails
constructor
A new instance of PaymentDetails.
- #to_hash ⇒ Object
Constructor Details
#initialize(token) ⇒ PaymentDetails
Returns a new instance of PaymentDetails.
9 10 11 |
# File 'lib/payson_api/v1/requests/payment_details.rb', line 9 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
7 8 9 |
# File 'lib/payson_api/v1/requests/payment_details.rb', line 7 def token @token end |
Instance Method Details
#to_hash ⇒ Object
13 14 15 |
# File 'lib/payson_api/v1/requests/payment_details.rb', line 13 def to_hash { 'token' => @token } end |