Class: E4commerce::E4CPayment

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/e4commerce/payment.rb

Overview

class E4CPayment < ActiveRecord::Base ~> Rails project, need database

Direct Known Subclasses

BankBillet

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#product_listObject

Returns the value of attribute product_list.



9
10
11
# File 'lib/e4commerce/payment.rb', line 9

def product_list
  @product_list
end

#totalObject

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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/e4commerce/payment.rb', line 12

def calculate_total(products)
	raise NotImplementedError, "Child must implement method"
end

#create_paymentObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/e4commerce/payment.rb', line 16

def create_payment
	raise NotImplementedError, "Child must implement method"
end