Class: PaysonAPI::V1::Requests::PaymentDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/payson_api/v1/requests/payment_details.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tokenObject

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_hashObject



13
14
15
# File 'lib/payson_api/v1/requests/payment_details.rb', line 13

def to_hash
  { 'token' => @token }
end