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