Sha256: a430d09ec54b9e00e4c1e3c3e74d379cabdbdc1472f3ffeb18737853cddff198
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
class Subscription < MLS::Model self.inheritance_column = nil belongs_to :membership belongs_to :subject, polymorphic: true belongs_to :credit_card def name case self.type when "unlimited" "Unlimited Premium Listings" when "premium" "Premium Listings" when "elite" "Elite Account" when "coworking" "Coworking Space" end end def cost read_attribute(:cost) / 100.0 if read_attribute(:cost) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mls-1.5.1 | lib/mls/subscription.rb |