Class: E4commerce::E4CPayment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- E4commerce::E4CPayment
- Defined in:
- lib/e4commerce/payment.rb
Overview
class E4CPayment < ActiveRecord::Base ~> Rails project, need database
Direct Known Subclasses
Instance Attribute Summary collapse
-
#product_list ⇒ Object
Returns the value of attribute product_list.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
Instance Attribute Details
#product_list ⇒ Object
Returns the value of attribute product_list.
9 10 11 |
# File 'lib/e4commerce/payment.rb', line 9 def product_list @product_list end |
#total ⇒ Object
Returns the value of attribute total.
10 11 12 |
# File 'lib/e4commerce/payment.rb', line 10 def total @total end |
Instance Method Details
#add_product(product) ⇒ Object
20 21 22 |
# File 'lib/e4commerce/payment.rb', line 20 def add_product(product) raise NotImplementedError, "Child must implement method" end |
#calculate_total(products) ⇒ Object
12 13 14 |
# File 'lib/e4commerce/payment.rb', line 12 def calculate_total(products) raise NotImplementedError, "Child must implement method" end |
#create_payment ⇒ Object
16 17 18 |
# File 'lib/e4commerce/payment.rb', line 16 def create_payment raise NotImplementedError, "Child must implement method" end |