Sha256: 0fbca19380052bdf26814ca9c40a0f608a48d22c3f174ea650e14e7c8d0f18ac

Contents?: true

Size: 529 Bytes

Versions: 13

Compression:

Stored size: 529 Bytes

Contents

#
# Stock action. Used to act on the existing inventory (before acting to aquire inventory)
# _vp_ 20171026
#
class Ish::StockAction
  include Mongoid::Document
  include Mongoid::Timestamps

  store_in :collection => 'ish_stock_action'

  belongs_to :profile, :class_name => 'Ish::UserProfile'
  belongs_to :stock_watch, :class_name => 'Ish::StockWatch'
  has_many :stock_options, :class_name => 'Ish::StockOption'

  field :is_active, :type => Boolean, :default => true # whether anything will be done upon alert trigger

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ish_models-0.0.33.153 lib/warbler/stock_action.rb
ish_models-0.0.33.152 lib/warbler/stock_action.rb
ish_models-0.0.33.151 lib/warbler/stock_action.rb
ish_models-0.0.33.150 lib/warbler/stock_action.rb
ish_models-0.0.33.149 lib/warbler/stock_action.rb
ish_models-0.0.33.148 lib/warbler/stock_action.rb
ish_models-0.0.33.147 lib/warbler/stock_action.rb
ish_models-0.0.33.146 lib/warbler/stock_action.rb
ish_models-0.0.33.145 lib/warbler/stock_action.rb
ish_models-0.0.33.144 lib/warbler/stock_action.rb
ish_models-0.0.33.143 lib/warbler/stock_action.rb
ish_models-0.0.33.142 lib/warbler/stock_action.rb
ish_models-0.0.33.141 lib/warbler/stock_action.rb