Sha256: a9e137e3d07ba6e8cc30eb0c04160374a51d31739bb1bca53020846d2e7d02d0

Contents?: true

Size: 764 Bytes

Versions: 17

Compression:

Stored size: 764 Bytes

Contents

#
# Lead
# _vp_ 20171204
#
class Ish::Lead
  include Mongoid::Document
  include Mongoid::Timestamps

  store_in :collection => 'ish_leads'

  # field :email
  # field :company_url
  # field :yelp_url

  # # company name
  # field :company
  # validates_uniqueness_of :company
  # index({ :company => -1 })

  # field :description # comment, actually

  field :is_done,  :type => Boolean, :default => false
  field :is_trash, :type => Boolean, :default => false

  field :tag, :type => String # 'hired_com_ror', not enumerated for now _vp_ 20180103
  # field :location

  field :raw_phone, :type => String
  def phone= which
    write_attribute :raw_phone, which
    write_attribute :phone, which.gsub(/\D/, '').to_i
  end
  field :phone, :type => Integer

end


Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ish_models-0.0.33.194 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.193 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.192 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.191 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.190 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.189 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.188 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.187 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.186 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.185 lib/ish/trash/lead.rb-bk
ish_models-0.0.33.184 lib/ish/lead.rb-bk
ish_models-0.0.33.183 lib/ish/lead.rb-bk
ish_models-0.0.33.182 lib/ish/lead.rb-bk
ish_models-0.0.33.181 lib/ish/lead.rb-bk
ish_models-0.0.33.180 lib/ish/lead.rb-bk
ish_models-0.0.33.179 lib/ish/lead.rb-bk
ish_models-0.0.33.178 lib/ish/lead.rb-bk