Class: Pesepay::Payment

Inherits:
Object
  • Object
show all
Defined in:
lib/pesepay.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(currency_code, payment_method_code, customer_email = nil, customer_phone = nil, customer_name = nil) ⇒ Payment

Returns a new instance of Payment.



254
255
256
257
258
259
260
# File 'lib/pesepay.rb', line 254

def initialize(currency_code, payment_method_code, customer_email = nil, customer_phone = nil, customer_name = nil)
  @currency_code = currency_code
  @payment_method_code = payment_method_code
  @customer_email = customer_email
  @customer_phone = customer_phone
  @customer_name = customer_name
end

Instance Attribute Details

#currency_codeObject

Returns the value of attribute currency_code.



252
253
254
# File 'lib/pesepay.rb', line 252

def currency_code
  @currency_code
end

#customer_emailObject

Returns the value of attribute customer_email.



252
253
254
# File 'lib/pesepay.rb', line 252

def customer_email
  @customer_email
end

#customer_nameObject

Returns the value of attribute customer_name.



252
253
254
# File 'lib/pesepay.rb', line 252

def customer_name
  @customer_name
end

#customer_phoneObject

Returns the value of attribute customer_phone.



252
253
254
# File 'lib/pesepay.rb', line 252

def customer_phone
  @customer_phone
end

#payment_method_codeObject

Returns the value of attribute payment_method_code.



252
253
254
# File 'lib/pesepay.rb', line 252

def payment_method_code
  @payment_method_code
end