Class: Ish::Lead

Inherits:
Object
  • Object
show all
Includes:
Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/ish/lead.rb

Overview

Lead vp 20171204

Constant Summary collapse

STATES =
%w( considering applied )

Instance Method Summary collapse

Instance Method Details

#phone=(which) ⇒ Object



41
42
43
44
# File 'lib/ish/lead.rb', line 41

def phone= which
  write_attribute :raw_phone, which
  write_attribute :phone, which.gsub(/\D/, '').to_i
end