Sha256: 75a053b05fae3fb22fc32c7ce9a0517414ecd1b469e13b75ac0a564d5f1b281e
Contents?: true
Size: 553 Bytes
Versions: 4
Compression:
Stored size: 553 Bytes
Contents
class Warbler::StockWatch include Mongoid::Document include Mongoid::Timestamps 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
4 entries across 4 versions & 1 rubygems