rentjuicer 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +22 -0
- data/LICENSE +20 -0
- data/README.rdoc +17 -0
- data/Rakefile +50 -0
- data/VERSION +1 -0
- data/lib/rentjuicer/client.rb +15 -0
- data/lib/rentjuicer/error.rb +17 -0
- data/lib/rentjuicer/lead.rb +21 -0
- data/lib/rentjuicer/listing.rb +57 -0
- data/lib/rentjuicer/listings.rb +86 -0
- data/lib/rentjuicer/neighborhoods.rb +16 -0
- data/lib/rentjuicer/response.rb +35 -0
- data/lib/rentjuicer.rb +13 -0
- data/spec/rentjuicer/client_spec.rb +17 -0
- data/spec/rentjuicer/error_spec.rb +17 -0
- data/spec/rentjuicer/lead_spec.rb +55 -0
- data/spec/rentjuicer/listing_spec.rb +97 -0
- data/spec/rentjuicer/listings_spec.rb +124 -0
- data/spec/rentjuicer/neighborhoods_spec.rb +30 -0
- data/spec/rentjuicer/response_spec.rb +51 -0
- data/spec/rentjuicer_api_key.yml.example +1 -0
- data/spec/responses/error.json +6 -0
- data/spec/responses/featured.json +431 -0
- data/spec/responses/find_all_1.json +1211 -0
- data/spec/responses/find_all_2.json +1294 -0
- data/spec/responses/find_all_3.json +808 -0
- data/spec/responses/find_all_by_ids.json +1249 -0
- data/spec/responses/find_all_by_ids_2.json +186 -0
- data/spec/responses/find_by_id.json +128 -0
- data/spec/responses/lead.json +8 -0
- data/spec/responses/lead_error.json +6 -0
- data/spec/responses/listings.json +1301 -0
- data/spec/responses/neighborhoods.json +227 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/support/listing_helper.rb +126 -0
- data/spec/support/webmock_helper.rb +24 -0
- metadata +161 -0
@@ -0,0 +1,186 @@
|
|
1
|
+
{
|
2
|
+
"status": "ok",
|
3
|
+
"page": 2,
|
4
|
+
"count": 2,
|
5
|
+
"total_count": 22,
|
6
|
+
"listings": [
|
7
|
+
{
|
8
|
+
"rentjuice_id": 197540,
|
9
|
+
"title": null,
|
10
|
+
"description": "The large eat-in kitchen includes ceramic tiles, dishwasher, garbage disposal. The living room displays a decorative fireplace and hardwood floors. Elevator. Unit also includes a newly renovated bathroom, elevator access, a porch and a washer and dryer.",
|
11
|
+
"agent_name": "Lucie Monroe",
|
12
|
+
"agent_email": "lmonroe@bradvisors.com",
|
13
|
+
"agent_phone": null,
|
14
|
+
"featured": 0,
|
15
|
+
"address": "452 Park Dr, Unit 5",
|
16
|
+
"street_number": 452,
|
17
|
+
"street": "Park Dr",
|
18
|
+
"unit_number": 5,
|
19
|
+
"cross_street": null,
|
20
|
+
"latitude": 42.3456771,
|
21
|
+
"longitude": -71.1046377,
|
22
|
+
"neighborhoods": [
|
23
|
+
"Boston",
|
24
|
+
"Fenway",
|
25
|
+
"Kenmore"
|
26
|
+
],
|
27
|
+
"floor_number": null,
|
28
|
+
"property_type": "Condominium",
|
29
|
+
"rent": 2400,
|
30
|
+
"fee": 1,
|
31
|
+
"bedrooms": 2,
|
32
|
+
"bathrooms": 1,
|
33
|
+
"square_footage": null,
|
34
|
+
"features": [
|
35
|
+
"Decorative fireplace",
|
36
|
+
"Eat-in Kitchen",
|
37
|
+
"Hardwood floors",
|
38
|
+
"Modern bathrooms",
|
39
|
+
"Updated\/renovated kitchen",
|
40
|
+
"Washer\/dryer in unit"
|
41
|
+
],
|
42
|
+
"rental_terms": [
|
43
|
+
"First Month's Rent Required",
|
44
|
+
"Security Deposit Required"
|
45
|
+
],
|
46
|
+
"date_available": "2010-08-18",
|
47
|
+
"last_updated": "2010-08-19 14:27:48",
|
48
|
+
"photos": [
|
49
|
+
{
|
50
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/19\/2948952.jpg",
|
51
|
+
"sort_order": 0,
|
52
|
+
"main_photo": true,
|
53
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/19\/2948953.jpg"
|
54
|
+
}
|
55
|
+
],
|
56
|
+
"custom_fields": [
|
57
|
+
{
|
58
|
+
"name": "Virtual Tour",
|
59
|
+
"type": "text",
|
60
|
+
"value": null
|
61
|
+
}
|
62
|
+
],
|
63
|
+
"url": "http:\/\/app.rentjuice.com\/listings\/197540"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"rentjuice_id": 200306,
|
67
|
+
"title": "HUGE 3BR ACROSS FROM BEACH AVAIL 9\/15, PARKING AVAILABLE TOO",
|
68
|
+
"description": "Columbia Rd 2nd floor unit available for rent 9\/15 or 10\/1. Across from M street beach! Spacious unit with 2 decks, dining room, living room, 3 good sized BRs, all new kitchen appliances, dishwasher and stove, brand new w\/d in unit, large pantry, rental parking avail (2 spots), newly painted, hardwoods were just refinished. Owner occupied (no college students), easy to show, email to set up today.",
|
69
|
+
"agent_name": "Lindsay Guittarr",
|
70
|
+
"agent_email": "lguittarr@bradvisors.com",
|
71
|
+
"agent_phone": "603-512-3263",
|
72
|
+
"featured": 0,
|
73
|
+
"address": "1744 Columbia Rd, Unit 2",
|
74
|
+
"street_number": 1744,
|
75
|
+
"street": "Columbia Rd",
|
76
|
+
"unit_number": 2,
|
77
|
+
"cross_street": null,
|
78
|
+
"latitude": 42.3304,
|
79
|
+
"longitude": -71.0327,
|
80
|
+
"neighborhoods": [
|
81
|
+
"South Boston"
|
82
|
+
],
|
83
|
+
"floor_number": 2,
|
84
|
+
"property_type": "Multi-Family House",
|
85
|
+
"rent": 2500,
|
86
|
+
"fee": 0,
|
87
|
+
"bedrooms": 3,
|
88
|
+
"bathrooms": 1,
|
89
|
+
"square_footage": null,
|
90
|
+
"features": [
|
91
|
+
"Dining room",
|
92
|
+
"Dishwasher",
|
93
|
+
"Hardwood floors",
|
94
|
+
"Patio or deck",
|
95
|
+
"Refrigerator",
|
96
|
+
"Washer\/dryer in unit"
|
97
|
+
],
|
98
|
+
"rental_terms": null,
|
99
|
+
"date_available": "2010-09-15",
|
100
|
+
"last_updated": "2010-08-25 15:45:56",
|
101
|
+
"photos": [
|
102
|
+
{
|
103
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008823.jpg",
|
104
|
+
"sort_order": 0,
|
105
|
+
"main_photo": false,
|
106
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008825.jpg"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008806.jpg",
|
110
|
+
"sort_order": 0,
|
111
|
+
"main_photo": false,
|
112
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008803.jpg"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008804.jpg",
|
116
|
+
"sort_order": 0,
|
117
|
+
"main_photo": false,
|
118
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008799.jpg"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008802.jpg",
|
122
|
+
"sort_order": 0,
|
123
|
+
"main_photo": false,
|
124
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008810.jpg"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008797.jpg",
|
128
|
+
"sort_order": 0,
|
129
|
+
"main_photo": false,
|
130
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008821.jpg"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008800.jpg",
|
134
|
+
"sort_order": 0,
|
135
|
+
"main_photo": false,
|
136
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008813.jpg"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008793.jpg",
|
140
|
+
"sort_order": 0,
|
141
|
+
"main_photo": false,
|
142
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008814.jpg"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008780.jpg",
|
146
|
+
"sort_order": 0,
|
147
|
+
"main_photo": false,
|
148
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008777.jpg"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008776.jpg",
|
152
|
+
"sort_order": 0,
|
153
|
+
"main_photo": false,
|
154
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008775.jpg"
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008769.jpg",
|
158
|
+
"sort_order": 0,
|
159
|
+
"main_photo": false,
|
160
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008770.jpg"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008762.jpg",
|
164
|
+
"sort_order": 0,
|
165
|
+
"main_photo": false,
|
166
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008766.jpg"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008760.jpg",
|
170
|
+
"sort_order": 0,
|
171
|
+
"main_photo": true,
|
172
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008757.jpg"
|
173
|
+
}
|
174
|
+
],
|
175
|
+
"custom_fields": [
|
176
|
+
{
|
177
|
+
"name": "Virtual Tour",
|
178
|
+
"type": "text",
|
179
|
+
"value": null
|
180
|
+
}
|
181
|
+
],
|
182
|
+
"url": "http:\/\/app.rentjuice.com\/listings\/200306"
|
183
|
+
}
|
184
|
+
],
|
185
|
+
"runtime": 0.96805
|
186
|
+
}
|
@@ -0,0 +1,128 @@
|
|
1
|
+
{
|
2
|
+
"status": "ok",
|
3
|
+
"page": 1,
|
4
|
+
"count": 1,
|
5
|
+
"total_count": 1,
|
6
|
+
"listings": [
|
7
|
+
{
|
8
|
+
"rentjuice_id": 200306,
|
9
|
+
"title": "HUGE 3BR ACROSS FROM BEACH AVAIL 9\/15, PARKING AVAILABLE TOO",
|
10
|
+
"description": "Columbia Rd 2nd floor unit available for rent 9\/15 or 10\/1. Across from M street beach! Spacious unit with 2 decks, dining room, living room, 3 good sized BRs, all new kitchen appliances, dishwasher and stove, brand new w\/d in unit, large pantry, rental parking avail (2 spots), newly painted, hardwoods were just refinished. Owner occupied (no college students), easy to show, email to set up today.",
|
11
|
+
"agent_name": "Lindsay Guittarr",
|
12
|
+
"agent_email": "lguittarr@bradvisors.com",
|
13
|
+
"agent_phone": "603-512-3263",
|
14
|
+
"featured": 0,
|
15
|
+
"address": "1744 Columbia Rd, Unit 2",
|
16
|
+
"street_number": 1744,
|
17
|
+
"street": "Columbia Rd",
|
18
|
+
"unit_number": 2,
|
19
|
+
"cross_street": null,
|
20
|
+
"latitude": 42.3304,
|
21
|
+
"longitude": -71.0327,
|
22
|
+
"neighborhoods": [
|
23
|
+
"South Boston"
|
24
|
+
],
|
25
|
+
"floor_number": 2,
|
26
|
+
"property_type": "Multi-Family House",
|
27
|
+
"rent": 2500,
|
28
|
+
"fee": 0,
|
29
|
+
"bedrooms": 3,
|
30
|
+
"bathrooms": 1,
|
31
|
+
"square_footage": null,
|
32
|
+
"features": [
|
33
|
+
"Dining room",
|
34
|
+
"Dishwasher",
|
35
|
+
"Hardwood floors",
|
36
|
+
"Patio or deck",
|
37
|
+
"Refrigerator",
|
38
|
+
"Washer\/dryer in unit"
|
39
|
+
],
|
40
|
+
"rental_terms": null,
|
41
|
+
"date_available": "2010-09-15",
|
42
|
+
"last_updated": "2010-08-25 15:45:56",
|
43
|
+
"photos": [
|
44
|
+
{
|
45
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008823.jpg",
|
46
|
+
"sort_order": 0,
|
47
|
+
"main_photo": false,
|
48
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008825.jpg"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008806.jpg",
|
52
|
+
"sort_order": 0,
|
53
|
+
"main_photo": false,
|
54
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008803.jpg"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008804.jpg",
|
58
|
+
"sort_order": 0,
|
59
|
+
"main_photo": false,
|
60
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008799.jpg"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008802.jpg",
|
64
|
+
"sort_order": 0,
|
65
|
+
"main_photo": false,
|
66
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008810.jpg"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008797.jpg",
|
70
|
+
"sort_order": 0,
|
71
|
+
"main_photo": false,
|
72
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008821.jpg"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008800.jpg",
|
76
|
+
"sort_order": 0,
|
77
|
+
"main_photo": false,
|
78
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008813.jpg"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008793.jpg",
|
82
|
+
"sort_order": 0,
|
83
|
+
"main_photo": false,
|
84
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008814.jpg"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008780.jpg",
|
88
|
+
"sort_order": 0,
|
89
|
+
"main_photo": false,
|
90
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008777.jpg"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008776.jpg",
|
94
|
+
"sort_order": 0,
|
95
|
+
"main_photo": false,
|
96
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008775.jpg"
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008769.jpg",
|
100
|
+
"sort_order": 0,
|
101
|
+
"main_photo": false,
|
102
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008770.jpg"
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008762.jpg",
|
106
|
+
"sort_order": 0,
|
107
|
+
"main_photo": false,
|
108
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008766.jpg"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"thumbnail": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008760.jpg",
|
112
|
+
"sort_order": 0,
|
113
|
+
"main_photo": true,
|
114
|
+
"fullsize": "http:\/\/static.rentjuice.com\/frames\/2010\/08\/25\/3008757.jpg"
|
115
|
+
}
|
116
|
+
],
|
117
|
+
"custom_fields": [
|
118
|
+
{
|
119
|
+
"name": "Virtual Tour",
|
120
|
+
"type": "text",
|
121
|
+
"value": null
|
122
|
+
}
|
123
|
+
],
|
124
|
+
"url": "http:\/\/app.rentjuice.com\/listings\/200306"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
"runtime": 0.16001
|
128
|
+
}
|