Sha256: 52a6985383441ae7b91398d6fddbb10440822f23ec1d5f847894da3fb8480cfd
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
module E4commerce require "abstraction" require "active_record" #class E4CPayment < ActiveRecord::Base ~> Rails project, need database class E4CPayment abstract attr_accessor :product_list attr_accessor :total def calculate_total(products) raise NotImplementedError, "Child must implement method" end def create_payment raise NotImplementedError, "Child must implement method" end def add_product(product) raise NotImplementedError, "Child must implement method" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
e4commerce-0.3.1 | lib/e4commerce/payment.rb |