Class: CouponValue

Inherits:
Coupon
  • Object
show all
Defined in:
app/models/coupon_value.rb

Overview

Schema Information

Table name: coupons

id            :integer(4)      not null, primary key
type          :string(255)     not null
code          :string(255)     not null
amount        :decimal(8, 2)   default(0.0)
minimum_value :decimal(8, 2)
percent       :integer(4)      default(0)
description   :text            default(""), not null
combine       :boolean(1)      default(FALSE)
starts_at     :datetime
expires_at    :datetime
created_at    :datetime
updated_at    :datetime

Direct Known Subclasses

CouponFirstPurchaseValue

Constant Summary

Constant Summary

Constants inherited from Coupon

Coupon::COUPON_TYPES

Instance Attribute Summary

Attributes inherited from Coupon

#c_type

Method Summary

Methods inherited from Coupon

#display_expires_time, #display_start_time, #eligible?, #qualified?, #value