52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
|
# File 'app/models/caboose_rets/property.rb', line 52
def parse(data)
self.acreage = data['LotSizeAcres'].blank? ? nil : data['LotSizeAcres'].to_f
self.acreage_source = data['LotSizeSource']
self.annual_taxes = data['TaxAnnualAmount']
self.appliances = data['Appliances']
self.area = data['MLSAreaMajor']
self.available_date = data['AvailabilityDate']
self.basement = data['Basement']
self.baths_full = data['BathroomsFull'].blank? ? nil : data['BathroomsFull'].to_i
self.baths_half = data['BathroomsHalf'].blank? ? nil : data['BathroomsHalf'].to_i
self.baths_total = data['BathroomsTotalInteger'].blank? ? nil : data['BathroomsTotalInteger'].to_f
self.beds_total = data['BedroomsTotal'].blank? ? nil : data['BedroomsTotal'].to_i
self.book_number = data['TaxBookNumber']
self.business_included_yn = data['BusinessName']
self.buyer_name = data['BuyerAgentFullName']
self.city = data['City']
self. = data['CityRegion']
self.closing = data['CloseDate']
self.co_list_agent_mui = data['CoListAgentMlsId']
self.co_list_agent_direct_work_phone = data['CoListAgentDirectPhone']
self.co_list_agent_email = data['CoListAgentEmail']
self.co_list_agent_full_name = data['CoListAgentFullName']
self.co_list_agent_mls_id = data['CoListAgentMlsId']
self.co_list_office_mui = data['CoListOfficeMlsId']
self.co_list_office_mls_id = data['CoListOfficeMlsId']
self.co_list_office_name = data['CoListOfficeName']
self.co_list_office_phone = data['CoListOfficePhone']
self.construction = data['ConstructionMaterials']
self.construction_status = data['DevelopmentStatus']
self.cooling = data['Cooling']
self.county_or_parish = data['CountyOrParish']
self.directions = data['Directions']
self.display_address_on_internet_yn = data['InternetAddressDisplayYN']
self.elementary_school = data['ElementarySchool']
self.exists_struct = data['StructureType']
self.expenses_insurance = data['InsuranceExpense']
self.expenses_maintenance = data['MaintenanceExpense']
self.expenses_management = data['ProfessionalManagementExpense']
self.expenses_other = data['OtherExpense']
self.expenses_tax = data['NewTaxesExpense']
self.exterior_features = data['ExteriorFeatures']
self.fireplace = data['FireplaceYN']
self.fireplace_features = data['FireplaceFeatures']
self.flooring = data['Flooring']
self.garage = data['GarageYN']
self.garage_spaces = data['GarageSpaces']
self.heating = data['Heating']
self.high_school = data['HighSchool']
self.hoa_amenities = data['AssociationAmenities']
self.hoa_fee = data['AssociationFee']
self.hoa_included_in_rent_yn = data['AssociationFeeIncludes']
self.hoa_term = data['AssociationFeeFrequency']
self.hoa_term_mandatory_yn = data['AssociationYN']
self.income_other = data['GrossIncome']
self.interior_features = data['InteriorFeatures']
self.land_features_extras = data['LotFeatures']
self.latitude = self.latitude.blank? ? nil : self.latitude
self.longitude = self.longitude.blank? ? nil : self.longitude
if self.latitude == 0.0 || self.latitude == '0.0' || self.longitude == 0.0 || self.longitude == '0.0' || (self.street_number != data['StreetNumber']) || (self.street_name != data['StreetName']) || (self.city != data['City']) || (self.postal_code != data['PostalCode'])
self.latitude = nil
self.longitude = nil
end
self.laundry = data['LaundryFeatures']
self.legal_description = data['TaxLegalDescription']
self.legal_lot = data['TaxLot']
self.legal_section = data['PublicSurveySection']
self.levels = data['Levels']
self.list_agent_mui = data['ListAgentMlsId']
self.list_agent_direct_work_phone = data['ListAgentOfficePhone']
self.list_agent_email = data['ListAgentEmail']
self.list_agent_full_name = data['ListAgentFullName']
self.list_agent_mls_id = data['ListAgentMlsId']
self.listing_contract_date = data['ListingContractDate']
self.list_office_mui = data['ListOfficeMlsId']
self.list_office_mls_id = data['ListOfficeMlsId']
self.list_office_name = data['ListOfficeName']
self.list_office_phone = data['ListOfficePhone']
self.list_price = data['ListPrice'].blank? ? self.list_price : data['ListPrice'].to_i
self.lot_description = data['LotFeatures']
self.lot_dimensions = data['LotSizeDimensions']
self.lot_dim_source = data['LotDimensionsSource']
self.matrix_unique_id = data['ListingKey']
self.matrix_modified_dt = data['ModificationTimestamp']
self.max_sqft = data['LivingArea']
self.middle_school = data['MiddleOrJuniorSchool']
self.min_sqft = data['LivingArea']
self.misc_indoor_featuresa = data['BuildingFeatures']
self.mls = data['ListingService']
self.mls_number = data['ListingId']
self.net_op_inc = data['NetOperatingIncome']
self.original_entry_timestamp = data['OriginalEntryTimestamp'].blank? ? data['OnMarketDate'] : data['OriginalEntryTimestamp']
self.parcel_number = data['ParcelNumber']
self.pending_date = data['PendingTimestamp']
self.pets_allowed_yn = data['PetsAllowed']
self.photo_count = data['PhotosCount']
self.photo_modification_timestamp = data['PhotosChangeTimestamp']
self.pool = data['PoolFeatures']
self.porch_patio = data['PatioAndPorchFeatures']
self.possession = data['Possession']
self.possible_uses = data['PossibleUse']
self.postal_code = data['PostalCode']
self.postal_code_plus4 = data['PostalCodePlus4']
self.property_subtype = data['PropertySubType']
self.property_type = data['PropertyType']
self.property_use = data['CurrentUse']
self.prop_mgmt_comp = data['ParkManagerName']
self. = data['PublicRemarks']
self.rental_rate_type = data['RentControlYN']
self.rent_incl = data['RentIncludes']
self.res_style = data['ArchitecturalStyle']
self.road_frontage = data['RoadFrontageType']
self.roof = data['Roof']
self.room_count = data['RoomsTotal']
self.security_features = data['SecurityFeatures']
self.sewer = data['Sewer']
self.sold_terms = data['ListingTerms']
self.sqft_source = data['LivingAreaSource']
self.sqft_total = data['LivingArea'].blank? ? nil : data['LivingArea'].to_f
self.state_or_province = data['StateOrProvince']
self.status = data['MlsStatus']
self.status_contractual_search_date = data['ContractStatusChangeDate']
self.street_dir_prefix = data['StreetDirPrefix']
self.street_dir_suffix = data['StreetDirSuffix']
self.street_name = data['StreetName']
self.street_number = data['StreetNumber']
self.street_number_numeric = data['StreetNumberNumeric']
self.street_suffix = data['StreetSuffix']
self.style = data['BodyType']
self.subdivision = data['SubdivisionName']
self.topography = data['Topography']
self.total_num_units = data['NumberOfUnitsTotal']
self.total_num_units_occupied = data['NumberOfUnitsLeased']
self.transaction_type = data['TransactionBrokerCompensationType']
self.unit_count = data['NumberOfUnitsInCommunity']
self.unit_number = data['UnitNumber']
self.utilities = data['Utilities']
self.virtual_tour1 = data['VirtualTourURLBranded'].blank? ? data['VirtualTourURLUnbranded'] : data['VirtualTourURLBranded']
self.water = data['WaterSource']
self.waterfronts = data['WaterBodyName']
self.waterfront_yn = data['WaterfrontYN']
self.windows = data['WindowFeatures']
self.year_built = data['YearBuilt']
self.yr_blt_source = data['YearBuiltSource']
self.zoning = data['Zoning']
end
|