Class: MageRecord::OrderPayment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- MageRecord::OrderPayment
- Defined in:
- lib/magerecord/order_payment.rb,
lib/magerecord/fitlion/order_payment.rb
Instance Method Summary collapse
Instance Method Details
#cash? ⇒ Boolean
8 9 10 |
# File 'lib/magerecord/order_payment.rb', line 8 def cash? return method == 'cashondelivery' end |
#cheque? ⇒ Boolean
12 13 14 |
# File 'lib/magerecord/order_payment.rb', line 12 def cheque? return method == 'checkmo' end |
#prepaid? ⇒ Boolean
3 4 5 |
# File 'lib/magerecord/fitlion/order_payment.rb', line 3 def prepaid? return method != 'cashondelivery' end |