Sha256: 36db98c903bea87ed84cafa0cd32bf17d581b492d3051cd03d8e17ef44b7cee2

Contents?: true

Size: 535 Bytes

Versions: 96

Compression:

Stored size: 535 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 => 'IshModels::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

96 entries across 96 versions & 1 rubygems

Version Path
ish_models-0.0.33.140 lib/ish/stock_action.rb
ish_models-0.0.33.139 lib/ish/stock_action.rb
ish_models-0.0.33.138 lib/ish/stock_action.rb
ish_models-0.0.33.137 lib/ish/stock_action.rb
ish_models-0.0.33.136 lib/ish/stock_action.rb
ish_models-0.0.33.135 lib/ish/stock_action.rb
ish_models-0.0.33.134 lib/ish/stock_action.rb
ish_models-0.0.33.133 lib/ish/stock_action.rb
ish_models-0.0.33.132 lib/ish/stock_action.rb
ish_models-0.0.33.131 lib/ish/stock_action.rb
ish_models-0.0.33.130 lib/ish/stock_action.rb
ish_models-0.0.33.129 lib/ish/stock_action.rb
ish_models-0.0.33.128 lib/ish/stock_action.rb
ish_models-0.0.33.127 lib/ish/stock_action.rb
ish_models-0.0.33.124 lib/ish/stock_action.rb
ish_models-0.0.33.123 lib/ish/stock_action.rb
ish_models-0.0.33.122 lib/ish/stock_action.rb
ish_models-0.0.33.121 lib/ish/stock_action.rb
ish_models-0.0.33.120 lib/ish/stock_action.rb
ish_models-0.0.33.119 lib/ish/stock_action.rb