tourets 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/tourets/rails/version.rb +1 -1
- data/lib/tourets/utilities.rb +52 -51
- metadata +4 -4
data/lib/tourets/utilities.rb
CHANGED
@@ -24,16 +24,17 @@ module TouRETS
|
|
24
24
|
# I'm thinking maybe like a dictionary lookup. Figure out what each RETS server uses.
|
25
25
|
# Also good to note that there are different data types, but they all are strings.
|
26
26
|
# We could figure out a way to convert to Integer, or DateTime objects, etc... depending.
|
27
|
+
# All results are esentially just strings. The comments below indicate what the value type should be by how it's formatted
|
27
28
|
def key_map
|
28
29
|
{
|
29
|
-
:id => "sysid",
|
30
|
-
:property_type => "1",
|
31
|
-
:acreage => "2",
|
32
|
-
:zip_code => "10",
|
33
|
-
:address => "13",
|
34
|
-
:partial_flag => "17",
|
35
|
-
:close_date => "25",
|
36
|
-
:agent_name => "26",
|
30
|
+
:id => "sysid", #String
|
31
|
+
:property_type => "1", #String
|
32
|
+
:acreage => "2", #Float
|
33
|
+
:zip_code => "10", #String
|
34
|
+
:address => "13", #String
|
35
|
+
:partial_flag => "17", #String
|
36
|
+
:close_date => "25", #DateTime
|
37
|
+
:agent_name => "26", #String
|
37
38
|
:annual_property_tax => "28", #Integer
|
38
39
|
:has_dishwasher => "30", #Boolean
|
39
40
|
:has_disposal => "31", #Boolean
|
@@ -51,7 +52,7 @@ module TouRETS
|
|
51
52
|
:built_desc => "72", #String
|
52
53
|
:carport_desc => "73", #String
|
53
54
|
:carports => "74", #Integer
|
54
|
-
:comp_days_on_market => "81", #Integer
|
55
|
+
:comp_days_on_market => "81", #Integer
|
55
56
|
:contingency_desc => "84", #String
|
56
57
|
:contract_date => "85", #DateTime
|
57
58
|
:cooling_fuel_desc => "86", #String
|
@@ -133,58 +134,58 @@ module TouRETS
|
|
133
134
|
:bedroom_3_desc => "283", #String
|
134
135
|
:bedroom_4_desc => "284", #String
|
135
136
|
:oven_desc => "289", #String
|
136
|
-
:other_appliance_desc => "290",
|
137
|
-
:construction_desc => "291",
|
138
|
-
:interior_desc => "292",
|
139
|
-
:flooring_desc => "293",
|
140
|
-
:fireplace_desc => "294",
|
141
|
-
:fence_type => "295",
|
142
|
-
:equestrian_desc => "296",
|
143
|
-
:direction_house_faces => "297",
|
144
|
-
:misc_desc => "298",
|
145
|
-
:exterior_desc => "299",
|
146
|
-
:landscape_desc => "300",
|
147
|
-
:heating_desc => "301",
|
148
|
-
:heating_fuel_desc => "302",
|
149
|
-
:cooling_system => "303",
|
150
|
-
:utility_info => "304",
|
151
|
-
:energy_desc => "305",
|
137
|
+
:other_appliance_desc => "290", #String
|
138
|
+
:construction_desc => "291", #String
|
139
|
+
:interior_desc => "292", #String
|
140
|
+
:flooring_desc => "293", #String
|
141
|
+
:fireplace_desc => "294", #String
|
142
|
+
:fence_type => "295", #String
|
143
|
+
:equestrian_desc => "296", #String
|
144
|
+
:direction_house_faces => "297", #String
|
145
|
+
:misc_desc => "298", #String
|
146
|
+
:exterior_desc => "299", #String
|
147
|
+
:landscape_desc => "300", #String
|
148
|
+
:heating_desc => "301", #String
|
149
|
+
:heating_fuel_desc => "302", #String
|
150
|
+
:cooling_system => "303", #String
|
151
|
+
:utility_info => "304", #String
|
152
|
+
:energy_desc => "305", #String
|
152
153
|
:estimated_closing_date => "1736", #DateTime
|
153
154
|
:original_price_sqft => "1740", #Integer
|
154
155
|
:idx_display => "1809", #String
|
155
156
|
:vr_tour_link => "2139", #String
|
156
157
|
:last_image_trans_date => "2238", #DateTime
|
157
158
|
:sqft => "2361", #Integer
|
158
|
-
:xp_unit_number => "2363",
|
159
|
+
:xp_unit_number => "2363", #String
|
159
160
|
:short_sale? => "2369", #Boolean
|
160
|
-
:elementary_school =>"2377",
|
161
|
-
:total_possible_bedrooms => "2379",
|
162
|
-
:days_list_to_close => "2381",
|
163
|
-
:unit_num => "2386",
|
164
|
-
:ammenities_desc => "2388",
|
161
|
+
:elementary_school =>"2377", #String
|
162
|
+
:total_possible_bedrooms => "2379", #String
|
163
|
+
:days_list_to_close => "2381", #String
|
164
|
+
:unit_num => "2386", #String
|
165
|
+
:ammenities_desc => "2388", #String
|
165
166
|
:bath_downstairs? => "2392", #Boolean
|
166
167
|
:bedroom_downstairs? => "2394", #Boolean
|
167
|
-
:building_desc => "2414",
|
168
|
-
:fireplace_location => "2422",
|
169
|
-
:
|
170
|
-
:furnishings_desc => "2426",
|
168
|
+
:building_desc => "2414", #String
|
169
|
+
:fireplace_location => "2422", #String
|
170
|
+
:foreclosure_commenced => "2424", #String
|
171
|
+
:furnishings_desc => "2426", #String
|
171
172
|
:has_great_room? => "2428", #Boolean
|
172
|
-
:great_room_dim => "2430",
|
173
|
-
:great_room_desc => "2432",
|
174
|
-
:parking_desc => "2438",
|
175
|
-
:washer_included? => "2440",
|
176
|
-
:dryer_included? => "2442",
|
177
|
-
:house_views => "2450",
|
178
|
-
:subtype => "2452",
|
179
|
-
:den_dim => "2511",
|
180
|
-
:unit_desc => "2543",
|
181
|
-
:repo => "2660",
|
182
|
-
:has_public_address => "2858",
|
183
|
-
:commentary? => "2859",
|
184
|
-
:avm? => "2860",
|
185
|
-
:public_address => "2861",
|
186
|
-
:auction_date => "2878",
|
187
|
-
:auction_type => "2879"
|
173
|
+
:great_room_dim => "2430", #String
|
174
|
+
:great_room_desc => "2432", #String
|
175
|
+
:parking_desc => "2438", #String
|
176
|
+
:washer_included? => "2440", #String
|
177
|
+
:dryer_included? => "2442", #String
|
178
|
+
:house_views => "2450", #String
|
179
|
+
:subtype => "2452", #String
|
180
|
+
:den_dim => "2511", #String
|
181
|
+
:unit_desc => "2543", #String
|
182
|
+
:repo => "2660", #String
|
183
|
+
:has_public_address => "2858", #Boolean
|
184
|
+
:commentary? => "2859", #Boolean
|
185
|
+
:avm? => "2860", #Boolean
|
186
|
+
:public_address => "2861", #String
|
187
|
+
:auction_date => "2878", #DateTime
|
188
|
+
:auction_type => "2879" #String
|
188
189
|
}
|
189
190
|
end
|
190
191
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tourets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-12-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ruby-rets
|
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
segments:
|
119
119
|
- 0
|
120
|
-
hash:
|
120
|
+
hash: -1543556300079290224
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
segments:
|
128
128
|
- 0
|
129
|
-
hash:
|
129
|
+
hash: -1543556300079290224
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
132
|
rubygems_version: 1.8.24
|