Sha256: e304286fc35b7bca58fab3806d08890fbebbe11529f7f8175d90da1b35dd9984
Contents?: true
Size: 412 Bytes
Versions: 9
Compression:
Stored size: 412 Bytes
Contents
class Phone < ActiveRecord::Base attr_accessible :kind, :number belongs_to :person #This method is here solely to parse phones in the Athena migration #There were in the form type:number def self.from_athena(unparsed_phone) Phone.new.tap do |phone| phone.kind, phone.number = unparsed_phone.split(":") end end def self.kinds [ "Work", "Home", "Cell", "Fax", "Other" ] end end
Version data entries
9 entries across 9 versions & 1 rubygems