g5_updatable 0.10.3 → 0.20.3.pre.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -2
  3. data/app/concerns/g5_updatable/belongs_to_client.rb +3 -3
  4. data/app/controllers/g5_updatable/feed_controller.rb +1 -1
  5. data/app/controllers/g5_updatable/locations_controller.rb +2 -2
  6. data/app/controllers/g5_updatable/syncs_controller.rb +3 -3
  7. data/app/models/g5_updatable/client.rb +4 -4
  8. data/app/models/g5_updatable/hub_amenities_location.rb +6 -0
  9. data/app/models/g5_updatable/hub_amenity.rb +21 -0
  10. data/app/models/g5_updatable/location.rb +75 -2
  11. data/app/serializers/g5_updatable/location_serializer.rb +8 -0
  12. data/db/migrate/20151103043916_add_latitude_and_longitude_to_location.rb +6 -0
  13. data/db/migrate/20151103050229_copy_lat_long_props_to_lat_long_columns.rb +19 -0
  14. data/db/migrate/20151106070749_add_latitude_longitude_indexes_to_location.rb +6 -0
  15. data/db/migrate/20161122070749_add_amenities.rb +25 -0
  16. data/db/migrate/20161209070749_add_client_urn_to_locations.rb +6 -0
  17. data/lib/g5_updatable.rb +5 -3
  18. data/lib/g5_updatable/all_client_urns_fetcher.rb +17 -0
  19. data/lib/g5_updatable/client_feed_processor.rb +26 -14
  20. data/lib/g5_updatable/client_updater.rb +37 -12
  21. data/lib/g5_updatable/factories.rb +2 -2
  22. data/lib/g5_updatable/fetcher.rb +22 -0
  23. data/lib/g5_updatable/indifferentizer.rb +11 -0
  24. data/lib/g5_updatable/locations_updater.rb +68 -20
  25. data/lib/g5_updatable/rspec/factories.rb +53 -2
  26. data/lib/g5_updatable/version.rb +1 -1
  27. data/lib/tasks/g5_updatable_tasks.rake +11 -4
  28. data/spec/concerns/g5_updatable/belongs_to_client_spec.rb +1 -3
  29. data/spec/controllers/feed_controller_spec.rb +21 -0
  30. data/spec/controllers/syncs_controller_spec.rb +3 -3
  31. data/spec/dummy/config/database.yml +2 -2
  32. data/spec/dummy/db/schema.rb +28 -1
  33. data/spec/dummy/log/development.log +172 -146
  34. data/spec/dummy/log/test.log +101011 -13426
  35. data/spec/dummy/log/tests.log +0 -0
  36. data/spec/fixtures/client-g5-c-1soj8m6e-g5-multifamily-missing-locations.json +121 -0
  37. data/spec/fixtures/client-g5-c-1soj8m6e-g5-multifamily-no-locations.json +41 -0
  38. data/spec/fixtures/client-g5-c-1soj8m6e-g5-multifamily.json +471 -0
  39. data/spec/fixtures/hub-client.json +187 -0
  40. data/spec/fixtures/hub-clients.json +19972 -0
  41. data/spec/fixtures/hub-location.json +166 -0
  42. data/spec/fixtures/location-g5-cl-1soj9pe2-541-apartments.json +98 -0
  43. data/spec/fixtures/urns.json +10 -0
  44. data/spec/lib/g5_updatable/all_client_urns_fetcher_spec.rb +56 -0
  45. data/spec/lib/g5_updatable/client_feed_processor_spec.rb +86 -33
  46. data/spec/lib/g5_updatable/client_updater_spec.rb +55 -23
  47. data/spec/lib/g5_updatable/locations_updater_spec.rb +140 -54
  48. data/spec/models/g5_updatable/client_spec.rb +2 -0
  49. data/spec/models/g5_updatable/hub_amenities_location_spec.rb +6 -0
  50. data/spec/models/g5_updatable/hub_amenity_spec.rb +29 -0
  51. data/spec/models/g5_updatable/location_spec.rb +240 -10
  52. data/spec/serializers/g5_updatable/location_serializer_spec.rb +2 -1
  53. data/spec/spec_helper.rb +2 -1
  54. data/spec/support/fixture_helper.rb +5 -0
  55. data/spec/support/shared_examples/belongs_to_client.rb +4 -5
  56. metadata +84 -17
File without changes
@@ -0,0 +1,121 @@
1
+ {
2
+ "client": {
3
+ "id": 22,
4
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
5
+ "name": "G5 Multifamily",
6
+ "branded_name": "G5 Multifamily",
7
+ "urn": "g5-c-1soj8m6e-g5-multifamily",
8
+ "vertical": "Apartments",
9
+ "street_address_1": "455 NW Franklin Ave",
10
+ "street_address_2": "",
11
+ "country": "US",
12
+ "city": "Bend",
13
+ "state": "OR",
14
+ "state_name": "Oregon",
15
+ "postal_code": "97702",
16
+ "fax": "",
17
+ "email": "",
18
+ "tel": "",
19
+ "domain_type": "MultiDomainClient",
20
+ "domain": "http://www.g5mockup-corp.com",
21
+ "service_1": "",
22
+ "service_2": "",
23
+ "service_3": "",
24
+ "service_4": "",
25
+ "service_5": "",
26
+ "secure_domain": false,
27
+ "go_squared_client_id": "",
28
+ "go_squared_tags": "",
29
+ "vendor_integration": false,
30
+ "created_at": "2014-08-13T17:22:04.237-07:00",
31
+ "updated_at": "2016-12-07T15:18:18.637-08:00",
32
+ "organization": "g5-test-apps",
33
+ "g5_internal": true,
34
+ "fb_pixel_id": "",
35
+ "adwords_id": "",
36
+ "adwords_conversion_label": "",
37
+ "status": "Active",
38
+ "locations": [
39
+ {
40
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments",
41
+ "client_uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
42
+ "amenities": [],
43
+ "created_at": "2014-08-13T17:30:32.413-07:00",
44
+ "updated_at": "2016-10-05T21:14:50.523-07:00",
45
+ "client_id": 22,
46
+ "name": "541 Apartments",
47
+ "internal_branded_name": null,
48
+ "custom_slug": "541-apartments",
49
+ "corporate": false,
50
+ "urn": "g5-cl-1soj9pe2-541-apartments",
51
+ "status": "Pending",
52
+ "home_page_url": "http://www.g5salesdemo3.com",
53
+ "street_address_1": "541 NW Bond St",
54
+ "street_address_2": "",
55
+ "country": "US",
56
+ "country_code": "1",
57
+ "city": "Bend",
58
+ "state": "OH",
59
+ "state_name": "Ohio",
60
+ "postal_code": "12345",
61
+ "website_page_prefix": "http://www.g5salesdemo3.com/apartments/oh/bend",
62
+ "service_1": null,
63
+ "service_2": null,
64
+ "service_3": null,
65
+ "service_4": null,
66
+ "service_5": null,
67
+ "fax": "",
68
+ "email": "",
69
+ "office_hours": "M-F 9-5",
70
+ "access_hours": null,
71
+ "twitter_username": "",
72
+ "facebook_username": "",
73
+ "yelp_username": "",
74
+ "pinterest_username": "",
75
+ "foursquare_username": "",
76
+ "linkedin_username": null,
77
+ "linkedin_account_type": null,
78
+ "tumblr_username": "",
79
+ "instagram_username": "",
80
+ "vimeo_username": "",
81
+ "youtube_username": "",
82
+ "domain": "http://www.g5salesdemo3.com",
83
+ "secure_domain": false,
84
+ "phone_number": "541-541-5413",
85
+ "local_phone_number": null,
86
+ "neighborhood": "",
87
+ "floor_plans": "Studio \u0026 2",
88
+ "nearby_schools": "COCC",
89
+ "nearby_employers": "Deschutes Brewery",
90
+ "ga_tracking_id": "",
91
+ "ga_profile_id": "",
92
+ "landmark_1_type": "Lake",
93
+ "landmark_1_name": "Crater Lake",
94
+ "landmark_2_type": "Military Base",
95
+ "landmark_2_name": "G5 Special Ops",
96
+ "property_feature_1": "Luxury",
97
+ "property_feature_2": "Furnished",
98
+ "property_feature_3": "Affordable",
99
+ "apartment_amenity_1": "Central Air \u0026 Heating",
100
+ "apartment_amenity_2": "Free WiFi",
101
+ "community_amenity_1": "Swimming Pool",
102
+ "community_amenity_2": "Roller Coaster",
103
+ "timezone": "America/New_York",
104
+ "latitude": 39.205226,
105
+ "longitude": -84.500929,
106
+ "go_squared_site_token": "",
107
+ "thumbnail_url_300px": "/images/original/missing.png",
108
+ "google_plus_id": null,
109
+ "neighborhood_2": null,
110
+ "verified_address": "unverified",
111
+ "gtm_codes": "GTM-KTND",
112
+ "spinup_web_theme": null,
113
+ "spinup_strategy": null,
114
+ "core_store_id": null,
115
+ "custom_vertical": null,
116
+ "off_platform": false,
117
+ "thumbnail_url": "/images/thumb/missing.png"
118
+ }
119
+ ]
120
+ }
121
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "client": {
3
+ "id": 22,
4
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
5
+ "name": "G5 Multifamily",
6
+ "branded_name": "G5 Multifamily",
7
+ "urn": "g5-c-1soj8m6e-g5-multifamily",
8
+ "vertical": "Apartments",
9
+ "street_address_1": "455 NW Franklin Ave",
10
+ "street_address_2": "",
11
+ "country": "US",
12
+ "city": "Bend",
13
+ "state": "OR",
14
+ "state_name": "Oregon",
15
+ "postal_code": "97702",
16
+ "fax": "",
17
+ "email": "",
18
+ "tel": "",
19
+ "domain_type": "MultiDomainClient",
20
+ "domain": "http://www.g5mockup-corp.com",
21
+ "service_1": "",
22
+ "service_2": "",
23
+ "service_3": "",
24
+ "service_4": "",
25
+ "service_5": "",
26
+ "secure_domain": false,
27
+ "go_squared_client_id": "",
28
+ "go_squared_tags": "",
29
+ "vendor_integration": false,
30
+ "created_at": "2014-08-13T17:22:04.237-07:00",
31
+ "updated_at": "2016-12-07T15:18:18.637-08:00",
32
+ "organization": "g5-test-apps",
33
+ "g5_internal": true,
34
+ "fb_pixel_id": "",
35
+ "adwords_id": "",
36
+ "adwords_conversion_label": "",
37
+ "status": "Active",
38
+ "locations": [
39
+ ]
40
+ }
41
+ }
@@ -0,0 +1,471 @@
1
+ {
2
+ "client": {
3
+ "id": 22,
4
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
5
+ "name": "G5 Multifamily",
6
+ "branded_name": "G5 Multifamily",
7
+ "urn": "g5-c-1soj8m6e-g5-multifamily",
8
+ "vertical": "Apartments",
9
+ "street_address_1": "455 NW Franklin Ave",
10
+ "street_address_2": "",
11
+ "country": "US",
12
+ "city": "Bend",
13
+ "state": "OR",
14
+ "state_name": "Oregon",
15
+ "postal_code": "97702",
16
+ "fax": "",
17
+ "email": "",
18
+ "tel": "",
19
+ "domain_type": "MultiDomainClient",
20
+ "domain": "http://www.g5mockup-corp.com",
21
+ "service_1": "",
22
+ "service_2": "",
23
+ "service_3": "",
24
+ "service_4": "",
25
+ "service_5": "",
26
+ "secure_domain": false,
27
+ "go_squared_client_id": "",
28
+ "go_squared_tags": "",
29
+ "vendor_integration": false,
30
+ "created_at": "2014-08-13T17:22:04.237-07:00",
31
+ "updated_at": "2016-12-07T15:18:18.637-08:00",
32
+ "organization": "g5-test-apps",
33
+ "g5_internal": true,
34
+ "fb_pixel_id": "",
35
+ "adwords_id": "",
36
+ "adwords_conversion_label": "",
37
+ "status": "Active",
38
+ "locations": [
39
+ {
40
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soj9pe2-541-apartments",
41
+ "client_uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
42
+ "amenities": [],
43
+ "created_at": "2014-08-13T17:30:32.413-07:00",
44
+ "updated_at": "2016-10-05T21:14:50.523-07:00",
45
+ "client_id": 22,
46
+ "name": "541 Apartments",
47
+ "internal_branded_name": null,
48
+ "custom_slug": "541-apartments",
49
+ "corporate": false,
50
+ "urn": "g5-cl-1soj9pe2-541-apartments",
51
+ "status": "Pending",
52
+ "home_page_url": "http://www.g5salesdemo3.com",
53
+ "street_address_1": "541 NW Bond St",
54
+ "street_address_2": "",
55
+ "country": "US",
56
+ "country_code": "1",
57
+ "city": "Bend",
58
+ "state": "OH",
59
+ "state_name": "Ohio",
60
+ "postal_code": "12345",
61
+ "website_page_prefix": "http://www.g5salesdemo3.com/apartments/oh/bend",
62
+ "service_1": null,
63
+ "service_2": null,
64
+ "service_3": null,
65
+ "service_4": null,
66
+ "service_5": null,
67
+ "fax": "",
68
+ "email": "",
69
+ "office_hours": "M-F 9-5",
70
+ "access_hours": null,
71
+ "twitter_username": "",
72
+ "facebook_username": "",
73
+ "yelp_username": "",
74
+ "pinterest_username": "",
75
+ "foursquare_username": "",
76
+ "linkedin_username": null,
77
+ "linkedin_account_type": null,
78
+ "tumblr_username": "",
79
+ "instagram_username": "",
80
+ "vimeo_username": "",
81
+ "youtube_username": "",
82
+ "domain": "http://www.g5salesdemo3.com",
83
+ "secure_domain": false,
84
+ "phone_number": "541-541-5413",
85
+ "local_phone_number": null,
86
+ "neighborhood": "",
87
+ "floor_plans": "Studio \u0026 2",
88
+ "nearby_schools": "COCC",
89
+ "nearby_employers": "Deschutes Brewery",
90
+ "ga_tracking_id": "",
91
+ "ga_profile_id": "",
92
+ "landmark_1_type": "Lake",
93
+ "landmark_1_name": "Crater Lake",
94
+ "landmark_2_type": "Military Base",
95
+ "landmark_2_name": "G5 Special Ops",
96
+ "property_feature_1": "Luxury",
97
+ "property_feature_2": "Furnished",
98
+ "property_feature_3": "Affordable",
99
+ "apartment_amenity_1": "Central Air \u0026 Heating",
100
+ "apartment_amenity_2": "Free WiFi",
101
+ "community_amenity_1": "Swimming Pool",
102
+ "community_amenity_2": "Roller Coaster",
103
+ "timezone": "America/New_York",
104
+ "latitude": 39.205226,
105
+ "longitude": -84.500929,
106
+ "go_squared_site_token": "",
107
+ "thumbnail_url_300px": "/images/original/missing.png",
108
+ "google_plus_id": null,
109
+ "neighborhood_2": null,
110
+ "verified_address": "unverified",
111
+ "gtm_codes": "GTM-KTND",
112
+ "spinup_web_theme": null,
113
+ "spinup_strategy": null,
114
+ "core_store_id": null,
115
+ "custom_vertical": null,
116
+ "off_platform": false,
117
+ "thumbnail_url": "/images/thumb/missing.png"
118
+ },
119
+ {
120
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-1soja3fn-99-apartments",
121
+ "client_uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
122
+ "amenities": [],
123
+ "created_at": "2014-08-13T17:33:34.276-07:00",
124
+ "updated_at": "2016-10-05T21:14:50.855-07:00",
125
+ "client_id": 22,
126
+ "name": "99 Apartments",
127
+ "internal_branded_name": null,
128
+ "custom_slug": "99-apartments",
129
+ "corporate": false,
130
+ "urn": "g5-cl-1soja3fn-99-apartments",
131
+ "status": "Pending",
132
+ "home_page_url": "http://www.g5salesdemo4.com",
133
+ "street_address_1": "99 Problems St",
134
+ "street_address_2": "",
135
+ "country": "US",
136
+ "country_code": "1",
137
+ "city": "Ashland",
138
+ "state": "OR",
139
+ "state_name": "Oregon",
140
+ "postal_code": "97520",
141
+ "website_page_prefix": "http://www.g5salesdemo4.com/apartments/or/ashland",
142
+ "service_1": null,
143
+ "service_2": null,
144
+ "service_3": null,
145
+ "service_4": null,
146
+ "service_5": null,
147
+ "fax": "",
148
+ "email": "",
149
+ "office_hours": "M-F 9-5",
150
+ "access_hours": null,
151
+ "twitter_username": "",
152
+ "facebook_username": "",
153
+ "yelp_username": "",
154
+ "pinterest_username": "",
155
+ "foursquare_username": "",
156
+ "linkedin_username": null,
157
+ "linkedin_account_type": null,
158
+ "tumblr_username": "",
159
+ "instagram_username": "",
160
+ "vimeo_username": "",
161
+ "youtube_username": "",
162
+ "domain": "http://www.g5salesdemo4.com",
163
+ "secure_domain": false,
164
+ "phone_number": "541-541-5414",
165
+ "local_phone_number": null,
166
+ "neighborhood": "",
167
+ "floor_plans": "1, 2 \u0026 3",
168
+ "nearby_schools": "COCC",
169
+ "nearby_employers": "Bend Medical Center",
170
+ "ga_tracking_id": "",
171
+ "ga_profile_id": "",
172
+ "landmark_1_type": "Employer",
173
+ "landmark_1_name": "G5",
174
+ "landmark_2_type": "Recreation Area",
175
+ "landmark_2_name": "Mt Bachelor",
176
+ "property_feature_1": "Affordable",
177
+ "property_feature_2": "Luxury",
178
+ "property_feature_3": "",
179
+ "apartment_amenity_1": "Sauna",
180
+ "apartment_amenity_2": "Live-in Maid",
181
+ "community_amenity_1": "Swimming Pool",
182
+ "community_amenity_2": "Free Parking",
183
+ "timezone": "America/Los_Angeles",
184
+ "latitude": 42.1945758,
185
+ "longitude": -122.7094767,
186
+ "go_squared_site_token": "",
187
+ "thumbnail_url_300px": "/images/original/missing.png",
188
+ "google_plus_id": null,
189
+ "neighborhood_2": null,
190
+ "verified_address": "unverified",
191
+ "gtm_codes": "GTM-KTND",
192
+ "spinup_web_theme": null,
193
+ "spinup_strategy": null,
194
+ "core_store_id": null,
195
+ "custom_vertical": null,
196
+ "off_platform": false,
197
+ "thumbnail_url": "/images/thumb/missing.png"
198
+ },
199
+ {
200
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-560belmk8-denali",
201
+ "client_uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
202
+ "amenities": [
203
+ {
204
+ "id": 1,
205
+ "name": "WIFI",
206
+ "icon": "fa-wifi",
207
+ "created_at": "2016-12-07T15:06:47.500-08:00",
208
+ "updated_at": "2016-12-07T15:06:47.500-08:00"
209
+ },
210
+ {
211
+ "id": 7,
212
+ "name": "Power",
213
+ "icon": "fa-electric-outlet",
214
+ "created_at": "2016-12-07T15:09:33.391-08:00",
215
+ "updated_at": "2016-12-07T15:09:33.391-08:00"
216
+ }
217
+ ],
218
+ "created_at": "2016-03-10T12:40:17.561-08:00",
219
+ "updated_at": "2016-12-07T15:10:04.634-08:00",
220
+ "client_id": 22,
221
+ "name": "Denali",
222
+ "internal_branded_name": "Tier 1 Multifamily Denali",
223
+ "custom_slug": "18",
224
+ "corporate": false,
225
+ "urn": "g5-cl-560belmk8-denali",
226
+ "status": "Pending",
227
+ "home_page_url": "http://www.g5-multifamily-concierge-demo-denali.com",
228
+ "street_address_1": "550 NW Franklin Ave #200",
229
+ "street_address_2": "",
230
+ "country": "US",
231
+ "country_code": "1",
232
+ "city": "Bend",
233
+ "state": "OR",
234
+ "state_name": "Oregon",
235
+ "postal_code": "97703",
236
+ "website_page_prefix": "http://www.g5-multifamily-concierge-demo-denali.com/apartments/or/bend",
237
+ "service_1": "",
238
+ "service_2": "",
239
+ "service_3": "",
240
+ "service_4": "",
241
+ "service_5": "",
242
+ "fax": "",
243
+ "email": "",
244
+ "office_hours": "",
245
+ "access_hours": "",
246
+ "twitter_username": "",
247
+ "facebook_username": "GetG5",
248
+ "yelp_username": "g5-bend",
249
+ "pinterest_username": "",
250
+ "foursquare_username": "",
251
+ "linkedin_username": "",
252
+ "linkedin_account_type": null,
253
+ "tumblr_username": "",
254
+ "instagram_username": "getg5",
255
+ "vimeo_username": "",
256
+ "youtube_username": "G5SMarketing",
257
+ "domain": "http://www.g5-multifamily-concierge-demo-denali.com",
258
+ "secure_domain": false,
259
+ "phone_number": "541-541-5415",
260
+ "local_phone_number": "",
261
+ "neighborhood": "Downtown",
262
+ "floor_plans": "",
263
+ "nearby_schools": "",
264
+ "nearby_employers": "",
265
+ "ga_tracking_id": "",
266
+ "ga_profile_id": "",
267
+ "landmark_1_type": "",
268
+ "landmark_1_name": "",
269
+ "landmark_2_type": "",
270
+ "landmark_2_name": "",
271
+ "property_feature_1": "",
272
+ "property_feature_2": "",
273
+ "property_feature_3": "",
274
+ "apartment_amenity_1": "",
275
+ "apartment_amenity_2": "",
276
+ "community_amenity_1": "",
277
+ "community_amenity_2": "",
278
+ "timezone": "America/Los_Angeles",
279
+ "latitude": 44.0575212,
280
+ "longitude": -121.3133453,
281
+ "go_squared_site_token": "GSN-028918-I",
282
+ "thumbnail_url_300px": "/images/original/missing.png",
283
+ "google_plus_id": "+Getg5",
284
+ "neighborhood_2": "Ritzy",
285
+ "verified_address": "unverified",
286
+ "gtm_codes": "GTM-KTND",
287
+ "spinup_web_theme": "Broadway/tier_1",
288
+ "spinup_strategy": "",
289
+ "core_store_id": null,
290
+ "custom_vertical": "",
291
+ "off_platform": false,
292
+ "thumbnail_url": "/images/thumb/missing.png"
293
+ },
294
+ {
295
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2xqm52t-mockup-design-3",
296
+ "client_uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
297
+ "amenities": [
298
+ {
299
+ "id": 1,
300
+ "name": "WIFI",
301
+ "icon": "fa-wifi",
302
+ "created_at": "2016-12-07T15:06:47.500-08:00",
303
+ "updated_at": "2016-12-07T15:06:47.500-08:00"
304
+ },
305
+ {
306
+ "id": 7,
307
+ "name": "Power",
308
+ "icon": "fa-electric-outlet",
309
+ "created_at": "2016-12-07T15:09:33.391-08:00",
310
+ "updated_at": "2016-12-07T15:09:33.391-08:00"
311
+ }
312
+ ],
313
+ "created_at": "2014-11-25T12:50:05.280-08:00",
314
+ "updated_at": "2016-12-07T15:18:18.607-08:00",
315
+ "client_id": 22,
316
+ "name": "Mockup Design 3",
317
+ "internal_branded_name": "",
318
+ "custom_slug": "mockup-design-3",
319
+ "corporate": false,
320
+ "urn": "g5-cl-i2xqm52t-mockup-design-3",
321
+ "status": "Live",
322
+ "home_page_url": "http://www.g5mockup-3.com",
323
+ "street_address_1": "1 Street Address",
324
+ "street_address_2": "",
325
+ "country": "US",
326
+ "country_code": "1",
327
+ "city": "Bend",
328
+ "state": "OR",
329
+ "state_name": "Oregon",
330
+ "postal_code": "97701",
331
+ "website_page_prefix": "http://www.g5mockup-3.com/apartments/or/bend",
332
+ "service_1": "",
333
+ "service_2": "",
334
+ "service_3": "",
335
+ "service_4": "",
336
+ "service_5": "",
337
+ "fax": "",
338
+ "email": "",
339
+ "office_hours": "M-F 9-5",
340
+ "access_hours": "",
341
+ "twitter_username": "",
342
+ "facebook_username": "",
343
+ "yelp_username": "",
344
+ "pinterest_username": "",
345
+ "foursquare_username": "",
346
+ "linkedin_username": "",
347
+ "linkedin_account_type": null,
348
+ "tumblr_username": "",
349
+ "instagram_username": "",
350
+ "vimeo_username": "",
351
+ "youtube_username": "",
352
+ "domain": "http://www.g5mockup-3.com",
353
+ "secure_domain": false,
354
+ "phone_number": "541-541-5411",
355
+ "local_phone_number": "",
356
+ "neighborhood": "was red light",
357
+ "floor_plans": "",
358
+ "nearby_schools": "",
359
+ "nearby_employers": "",
360
+ "ga_tracking_id": "",
361
+ "ga_profile_id": "",
362
+ "landmark_1_type": "",
363
+ "landmark_1_name": "",
364
+ "landmark_2_type": "",
365
+ "landmark_2_name": "",
366
+ "property_feature_1": "",
367
+ "property_feature_2": "",
368
+ "property_feature_3": "",
369
+ "apartment_amenity_1": "",
370
+ "apartment_amenity_2": "",
371
+ "community_amenity_1": "",
372
+ "community_amenity_2": "",
373
+ "timezone": "America/Los_Angeles",
374
+ "latitude": 44.0581728,
375
+ "longitude": -121.3153096,
376
+ "go_squared_site_token": "",
377
+ "thumbnail_url_300px": "/images/original/missing.png",
378
+ "google_plus_id": "",
379
+ "neighborhood_2": "green light",
380
+ "verified_address": "unverified",
381
+ "gtm_codes": "GTM-KTND",
382
+ "spinup_web_theme": "Wellborne Traditions/defaults",
383
+ "spinup_strategy": "",
384
+ "core_store_id": null,
385
+ "custom_vertical": "",
386
+ "off_platform": false,
387
+ "thumbnail_url": "/images/thumb/missing.png"
388
+ },
389
+ {
390
+ "uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily/locations/g5-cl-i2gg3rv8-g5-apartments",
391
+ "client_uid": "http://hub.g5dxm.com/clients/g5-c-1soj8m6e-g5-multifamily",
392
+ "amenities": [],
393
+ "created_at": "2014-11-13T10:23:47.411-08:00",
394
+ "updated_at": "2016-10-05T21:14:50.585-07:00",
395
+ "client_id": 22,
396
+ "name": "G5 Apartments",
397
+ "internal_branded_name": null,
398
+ "custom_slug": "g5-apartments",
399
+ "corporate": false,
400
+ "urn": "g5-cl-i2gg3rv8-g5-apartments",
401
+ "status": "Pending",
402
+ "home_page_url": "http://www.g5apartmenthomes.com",
403
+ "street_address_1": "550 NW Franklin Ave",
404
+ "street_address_2": "",
405
+ "country": "US",
406
+ "country_code": "1",
407
+ "city": "Bend",
408
+ "state": "OR",
409
+ "state_name": "Oregon",
410
+ "postal_code": "97701",
411
+ "website_page_prefix": "http://www.g5apartmenthomes.com/apartments/or/bend",
412
+ "service_1": null,
413
+ "service_2": null,
414
+ "service_3": null,
415
+ "service_4": null,
416
+ "service_5": null,
417
+ "fax": "",
418
+ "email": "",
419
+ "office_hours": "M-F 9-5",
420
+ "access_hours": null,
421
+ "twitter_username": "",
422
+ "facebook_username": "",
423
+ "yelp_username": "",
424
+ "pinterest_username": "",
425
+ "foursquare_username": "",
426
+ "linkedin_username": null,
427
+ "linkedin_account_type": null,
428
+ "tumblr_username": "",
429
+ "instagram_username": "",
430
+ "vimeo_username": "",
431
+ "youtube_username": "",
432
+ "domain": "http://www.g5apartmenthomes.com",
433
+ "secure_domain": false,
434
+ "phone_number": "541-541-5411",
435
+ "local_phone_number": null,
436
+ "neighborhood": "",
437
+ "floor_plans": "",
438
+ "nearby_schools": "",
439
+ "nearby_employers": "",
440
+ "ga_tracking_id": "",
441
+ "ga_profile_id": "",
442
+ "landmark_1_type": "",
443
+ "landmark_1_name": "",
444
+ "landmark_2_type": "",
445
+ "landmark_2_name": "",
446
+ "property_feature_1": "",
447
+ "property_feature_2": "",
448
+ "property_feature_3": "",
449
+ "apartment_amenity_1": "",
450
+ "apartment_amenity_2": "",
451
+ "community_amenity_1": "",
452
+ "community_amenity_2": "",
453
+ "timezone": "America/Los_Angeles",
454
+ "latitude": 44.0574889,
455
+ "longitude": -121.313313,
456
+ "go_squared_site_token": "",
457
+ "thumbnail_url_300px": "/images/original/missing.png",
458
+ "google_plus_id": null,
459
+ "neighborhood_2": null,
460
+ "verified_address": "unverified",
461
+ "gtm_codes": "GTM-KTND",
462
+ "spinup_web_theme": null,
463
+ "spinup_strategy": null,
464
+ "core_store_id": null,
465
+ "custom_vertical": null,
466
+ "off_platform": false,
467
+ "thumbnail_url": "/images/thumb/missing.png"
468
+ }
469
+ ]
470
+ }
471
+ }