Sha256: ced6b698fa39b52ffec887f12b603f7da9dd4e7e8d76009234b62cd21257a33c
Contents?: true
Size: 596 Bytes
Versions: 5
Compression:
Stored size: 596 Bytes
Contents
class Warbler::StockWatch include Mongoid::Document include Mongoid::Timestamps store_in collection: 'ish_stock_watches' field :ticker NOTIFICATION_TYPES = [ :NONE, :EMAIL, :SMS ] NOTIFICATION_NONE = :NONE NOTIFICATION_EMAIL = :EMAIL NOTIFICATION_SMS = :SMS ACTIONS = NOTIFICATION_TYPES field :notification_type, :type => Symbol, :as => :action field :price, :type => Float DIRECTIONS = [ :ABOVE, :BELOW ] DIRECTION_ABOVE = :ABOVE DIRECTION_BELOW = :BELOW field :direction, :type => Symbol belongs_to :profile, :class_name => 'Ish::UserProfile' end
Version data entries
5 entries across 5 versions & 1 rubygems