Class: Pesepay::Payment
- Inherits:
-
Object
- Object
- Pesepay::Payment
- Defined in:
- lib/pesepay.rb
Instance Attribute Summary collapse
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#customer_email ⇒ Object
Returns the value of attribute customer_email.
-
#customer_name ⇒ Object
Returns the value of attribute customer_name.
-
#customer_phone ⇒ Object
Returns the value of attribute customer_phone.
-
#payment_method_code ⇒ Object
Returns the value of attribute payment_method_code.
Instance Method Summary collapse
-
#initialize(currency_code, payment_method_code, customer_email = nil, customer_phone = nil, customer_name = nil) ⇒ Payment
constructor
A new instance of Payment.
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_code ⇒ Object
Returns the value of attribute currency_code.
252 253 254 |
# File 'lib/pesepay.rb', line 252 def currency_code @currency_code end |
#customer_email ⇒ Object
Returns the value of attribute customer_email.
252 253 254 |
# File 'lib/pesepay.rb', line 252 def customer_email @customer_email end |
#customer_name ⇒ Object
Returns the value of attribute customer_name.
252 253 254 |
# File 'lib/pesepay.rb', line 252 def customer_name @customer_name end |
#customer_phone ⇒ Object
Returns the value of attribute customer_phone.
252 253 254 |
# File 'lib/pesepay.rb', line 252 def customer_phone @customer_phone end |
#payment_method_code ⇒ Object
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 |