Sha256: fc27cb5b3da15ce280d872979d51030fbc3f7d1a71513460a6a0fd9c5018cfdc

Contents?: true

Size: 417 Bytes

Versions: 42

Compression:

Stored size: 417 Bytes

Contents

class Ish::CoveredCall
  include Mongoid::Document
  include Mongoid::Timestamps

  store_in collection: 'ish_covered_call'

  field :expires_on, type: Date
  validates :expires_on, presence: true
  field :n_contracts, type: Integer
  validates :n_contracts, presence: true
  field :ticker
  validates :ticker, uniqueness: { scope: :expires_on }
  validates :ticker, presence: true

  #
  # Internal, below
  #

end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
ish_models-0.0.33.153 lib/warbler/covered_call.rb
ish_models-0.0.33.152 lib/warbler/covered_call.rb
ish_models-0.0.33.151 lib/warbler/covered_call.rb
ish_models-0.0.33.150 lib/warbler/covered_call.rb
ish_models-0.0.33.149 lib/warbler/covered_call.rb
ish_models-0.0.33.148 lib/warbler/covered_call.rb
ish_models-0.0.33.147 lib/warbler/covered_call.rb
ish_models-0.0.33.146 lib/warbler/covered_call.rb
ish_models-0.0.33.145 lib/warbler/covered_call.rb
ish_models-0.0.33.144 lib/warbler/covered_call.rb
ish_models-0.0.33.143 lib/warbler/covered_call.rb
ish_models-0.0.33.142 lib/warbler/covered_call.rb
ish_models-0.0.33.141 lib/warbler/covered_call.rb
ish_models-0.0.33.140 lib/ish/covered_call.rb
ish_models-0.0.33.139 lib/ish/covered_call.rb
ish_models-0.0.33.138 lib/ish/covered_call.rb
ish_models-0.0.33.137 lib/ish/covered_call.rb
ish_models-0.0.33.136 lib/ish/covered_call.rb
ish_models-0.0.33.135 lib/ish/covered_call.rb
ish_models-0.0.33.134 lib/ish/covered_call.rb