Sha256: 303abe781a37b381b6012ba91002ba77a735a7410f7ec504cc5b45b4a29e3c5c
Contents?: true
Size: 1.28 KB
Versions: 18
Compression:
Stored size: 1.28 KB
Contents
class CabooseRets::Office < ActiveRecord::Base self.table_name = "rets_offices" has_one :meta, :class_name => 'OfficeMeta', :primary_key => 'lo_code', :foreign_key => 'lo_code' attr_accessible :id, :name, :lo_code def image return nil if self.meta.nil? return meta.image end def parse(data) self.lo_date_created = data['LO_DATE_CREATED'] self.lo_date_modified = data['LO_DATE_MODIFIED'] self.lo_email = data['LO_EMAIL'] self.lo_fax_phone = data['LO_FAX_PHONE'] self.lo_idx_yn = data['LO_IDX_YN'] self.lo_code = data['LO_LO_CODE'] self.lo_mailaddr1 = data['LO_MAILADDR1'] self.lo_mailaddr2 = data['LO_MAILADDR2'] self.lo_mailcity = data['LO_MAILCITY'] self.lo_mailstate = data['LO_MAILSTATE'] self.lo_mailzip = data['LO_MAILZIP'] self.lo_main_lo_code = data['LO_MAIN_LO_CODE'] self.lo_name = data['LO_NAME'] self.lo_other_phone = data['LO_OTHER_PHONE'] self.lo_page = data['LO_PAGE'] self.lo_phone = data['LO_PHONE'] self.lo_status = data['LO_STATUS'] self.photo_count = data['PHOTO_COUNT'] self.photo_date_modified = data['PHOTO_DATE_MODIFIED'] end end
Version data entries
18 entries across 18 versions & 1 rubygems