full_circle 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +18 -0
  3. data/Gemfile +4 -0
  4. data/Guardfile +24 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +45 -0
  7. data/Rakefile +6 -0
  8. data/full_circle.gemspec +29 -0
  9. data/lib/full_circle/api.rb +34 -0
  10. data/lib/full_circle/connection.rb +18 -0
  11. data/lib/full_circle/object_builder.rb +31 -0
  12. data/lib/full_circle/response_parser.rb +44 -0
  13. data/lib/full_circle/version.rb +3 -0
  14. data/lib/full_circle.rb +12 -0
  15. data/spec/fixtures/vcr_cassettes/empty_event_area_response.yml +47 -0
  16. data/spec/fixtures/vcr_cassettes/empty_get_coupons_response.yml +47 -0
  17. data/spec/fixtures/vcr_cassettes/empty_get_events_response.yml +47 -0
  18. data/spec/fixtures/vcr_cassettes/empty_get_upcoming_events_response.yml +48 -0
  19. data/spec/fixtures/vcr_cassettes/multiple_event_areas_response.yml +51 -0
  20. data/spec/fixtures/vcr_cassettes/multiple_get_coupons_response.yml +60 -0
  21. data/spec/fixtures/vcr_cassettes/multiple_get_upcoming_events_response.yml +277 -0
  22. data/spec/fixtures/vcr_cassettes/multple_get_events_response.yml +96 -0
  23. data/spec/fixtures/vcr_cassettes/single_event_areas_response.yml +49 -0
  24. data/spec/fixtures/vcr_cassettes/single_get_coupons_response.yml +51 -0
  25. data/spec/fixtures/vcr_cassettes/single_get_events_response.yml +52 -0
  26. data/spec/fixtures/vcr_cassettes/single_get_upcoming_events_response.yml +61 -0
  27. data/spec/full_circle/api_spec.rb +170 -0
  28. data/spec/full_circle/connection_spec.rb +21 -0
  29. data/spec/full_circle/object_builder_spec.rb +21 -0
  30. data/spec/full_circle/response_parser_spec.rb +187 -0
  31. data/spec/spec_helper.rb +11 -0
  32. metadata +202 -0
@@ -0,0 +1,277 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.360durango.com/1.0/city.getUpcomingEvents?
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Tue, 26 Mar 2013 22:30:09 GMT
17
+ Server:
18
+ - Apache/2.2.3 (Red Hat)
19
+ X-Powered-By:
20
+ - PHP/5.3.15
21
+ Set-Cookie:
22
+ - PHPSESSID=uo3ddd7ku1m05sqnp1q4ghban1; path=/
23
+ Expires:
24
+ - Mon, 26 Jul 1997 05:00:00 GMT
25
+ Cache-Control:
26
+ - no-store, no-cache, must-revalidate
27
+ - post-check=0, pre-check=0
28
+ Pragma:
29
+ - no-cache
30
+ Last-Modified:
31
+ - Tue, 26 Mar 2013 22:30:09 GMT
32
+ Connection:
33
+ - close
34
+ Transfer-Encoding:
35
+ - chunked
36
+ Content-Type:
37
+ - text/xml
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! "<?xml version=\"1.0\"?>\n<city-getUpcomingEventsResponse page=\"1\"
41
+ resultsPerPage=\"20\" totalPages=\"8\" totalResults=\"149\"><events><event
42
+ id=\"36342\" date=\"2013-03-26\" expireDate=\"2013-04-02\" time=\"00:00:00\"
43
+ title=\"$5 Burger or Sandwich\" allDayEvent=\"1\" location=\"The Irish Embassy
44
+ Pub\" type=\"Food Special\" dateMode=\"4\" siteId=\"77\" price=\"$5\" linkText=\"The
45
+ Irish Embassy Pub\" linkUrl=\"http://www.theirishembassypub.com\" featured=\"0\">$5
46
+ Burger, Nackers Chicken Sandwich, or Fish Sandwich<ad id=\"89690\" name=\"The
47
+ Irish Embassy Pub\" url=\"http://360Durango.com/Attractions/TheIrishEmbassyPub.html\"
48
+ description=\"The Irish Embassy is Durango's downtown Pub, perfect for a nice
49
+ cold beer, live music and traditional Irish Fayre\" eventCount=\"8\" couponCount=\"0\"
50
+ jobCount=\"0\" locationCount=\"1\" popupCount=\"5\" slideshowCount=\"4\" linkCount=\"5\"><address
51
+ addr1=\"900 Main Ave.\" city=\"Durango\" state=\"CO\" zipCode=\"81301\" phone=\"970.403.1200\"
52
+ fax=\"970.403.1203\"></address><logoImage url=\"http://tours.360durango.com/89690/logo.gif\"
53
+ width=\"153\" height=\"175\"></logoImage></ad></event><event id=\"60706\"
54
+ date=\"2013-03-26\" endDate=\"2013-03-31\" time=\"00:00:00\" title=\"Art at
55
+ Eno: Paintings by Alexis McLean\" allDayEvent=\"1\" location=\"eno\" type=\"Arts
56
+ / Exhibits\" dateMode=\"2\" siteId=\"77\" linkText=\"Eno Online\" linkUrl=\"http://www.enodurango.com\"
57
+ featured=\"0\">art at eno\n\nFeatured paintings by Alexis McLean\nFebruary
58
+ 7 - March 31<ad id=\"122154\" name=\"Eno\" url=\"http://360Durango.com/Attractions/Eno.html\"
59
+ description=\"Sit, sip, and savor in an ambiance of comfort ..... Wine, coffee,
60
+ cocktails, and tapas in a contemporary setting.\" eventCount=\"6\" couponCount=\"0\"
61
+ jobCount=\"0\" locationCount=\"1\" popupCount=\"6\" slideshowCount=\"3\" linkCount=\"6\"><address
62
+ addr1=\"723 E. Second Avenue\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
63
+ phone=\"970.385.0105\"></address></ad></event><event id=\"61328\" date=\"2013-03-26\"
64
+ endDate=\"2013-04-07\" time=\"00:00:00\" title=\"FREE WORKOUTS each Friday
65
+ March 6th-April 7th\" allDayEvent=\"1\" location=\"CrossFit Durango 846 Main
66
+ Avenue\" type=\"Health\" dateMode=\"2\" siteId=\"77\" price=\"FREE to all
67
+ registered CrossFit Open Competitors\" linkUrl=\"http://\" featured=\"0\">Each
68
+ week for five weeks, a workout will be announced\n\n*CrossFit Durango is a
69
+ CrossFit Open sanctioned gym<ad id=\"82184\" name=\"CrossFit Durango\" url=\"http://360Durango.com/Attractions/crossfitdurango.html\"
70
+ description=\"CrossFit Durango strongly believes in constantly varied functional
71
+ movements performed at the highest intensity. Great equipment and a committed
72
+ coaching staff motivate you!\" eventCount=\"3\" couponCount=\"0\" jobCount=\"0\"
73
+ locationCount=\"1\" popupCount=\"0\" slideshowCount=\"3\" linkCount=\"1\"><address
74
+ addr1=\"846 Main Avenue\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
75
+ phone=\"970.769.6903\"></address><logoImage url=\"http://tours.360durango.com/82184/logo.gif\"
76
+ width=\"350\" height=\"271\"></logoImage></ad></event><event id=\"61949\"
77
+ date=\"2013-03-26\" endDate=\"2013-03-31\" time=\"00:00:00\" title=\"Winter
78
+ Coats &amp; Boots Clearance\" allDayEvent=\"1\" location=\"Pet Haus\" type=\"Sale\"
79
+ dateMode=\"2\" siteId=\"77\" linkText=\"Click Here for Coupon\" linkUrl=\"http://www.360durango.com/coupon/31686\"
80
+ featured=\"0\">Protect your loved pets' toes and prevent snow getting caught
81
+ in their paws.\n\nClearing our stock of RC Pets and Ruffwear winter gear while
82
+ supplies last.<ad id=\"80763\" name=\"Pet Haus\" url=\"http://360Durango.com/Attractions/pethaus.html\"
83
+ description=\"Durango's fun pet supply store. Featuring the lowest prices
84
+ on dry dog and cat food, unique, local, animal products and friendly, knowledgeable
85
+ staff.\" eventCount=\"0\" couponCount=\"3\" jobCount=\"0\" locationCount=\"1\"
86
+ popupCount=\"4\" slideshowCount=\"3\" linkCount=\"3\"><address addr1=\"1444
87
+ MAIN AV\" city=\"DURANGO\" state=\"CO\" zipCode=\"81301\" phone=\"970.259.2564\"></address><logoImage
88
+ url=\"http://tours.360durango.com/80763/logo.gif\" width=\"270\" height=\"207\"></logoImage></ad></event><event
89
+ id=\"58885\" date=\"2013-03-26\" expireDate=\"2014-08-19\" time=\"00:00:00\"
90
+ title=\"Tuesday Specials\" allDayEvent=\"1\" location=\"Kassidy's Kitchen
91
+ in BODO PARK\" type=\"Food Special\" dateMode=\"4\" siteId=\"77\" price=\"$6.50\"
92
+ linkText=\"Click Here to See Daily Specials Items\" linkUrl=\"http://www.360durango.com/Restaurants/kassidyskitchen/p-WeeklySpecials.html\"
93
+ featured=\"0\">The Cheeseburger Tuesday Tradition: An 8-ounce, Hand-patted
94
+ Cheeseburger with a Choice of Side\n\n*** All Specials and their prices are
95
+ subject to change<ad id=\"81257\" name=\"Kassidy's Kitchen\" url=\"http://360Durango.com/Attractions/kassidyskitchen.html\"
96
+ description=\"Providing a Quality Meal, Fast &amp; Friendly Service, in a
97
+ Positive, Family-Style Atmosphere.\" eventCount=\"1\" couponCount=\"1\" jobCount=\"0\"
98
+ locationCount=\"1\" popupCount=\"6\" slideshowCount=\"1\" linkCount=\"0\"><address
99
+ addr1=\"171 A Suttle St. \" addr2=\"(Behind Comfort Inn)\" city=\"Durango\"
100
+ state=\"CO\" zipCode=\"81303\" phone=\"970.247.4007\"></address><logoImage
101
+ url=\"http://tours.360durango.com/81257/logo.gif\" width=\"244\" height=\"227\"></logoImage></ad></event><event
102
+ id=\"62623\" date=\"2013-03-26\" endDate=\"2013-03-31\" time=\"00:00:00\"
103
+ title=\"Artesanos Spring Sale\" allDayEvent=\"1\" location=\"700 East 2nd
104
+ Avenue-Downtown\" type=\"Sale\" dateMode=\"2\" siteId=\"77\" linkUrl=\"http://www.artesanosdesign.com/\"
105
+ featured=\"0\">Artesanos Home Furnishings &amp; Decor\n\nSpring Sale! 20-50%
106
+ off Storewide\n\nFurniture*Rugs*Bedding*Glassware*Iron*Candles*Dinnerware*Frames*Paper
107
+ Flowers*Talavera*Cards* Jewelry*Pottery*Lighting*Mirrors*Folkart*Pillows*Baskets</event><event
108
+ id=\"62660\" date=\"2013-03-26\" expireDate=\"2013-08-20\" time=\"00:00:00\"
109
+ title=\"Tuesday: Tortilla Burger\" allDayEvent=\"1\" location=\"Lost Dog Bar
110
+ &amp; Lounge - Downtown Durango\" type=\"Food Special\" dateMode=\"4\" siteId=\"77\"
111
+ price=\"$8.95\" linkUrl=\"http://\" featured=\"0\">8 ounce beef patty in between
112
+ 3 small tortillas, smothered in green chile, topped\nwith shredded cheddar
113
+ and jack cheeses, Pico de Gallo, and shredded lettuce, then\ntopped with guacamole.<ad
114
+ id=\"82578\" name=\"Lost Dog Bar &amp; Lounge\" url=\"http://360Durango.com/Attractions/lostdogbarandlounge.html\"
115
+ description=\"Lost Dog is Your Local Bar &amp; Lounge!\" eventCount=\"6\"
116
+ couponCount=\"0\" jobCount=\"0\" locationCount=\"1\" popupCount=\"1\" slideshowCount=\"0\"
117
+ linkCount=\"1\"><address addr1=\"1150 MAIN AV\" city=\"DURANGO\" state=\"CO\"
118
+ zipCode=\"81301\"></address><logoImage url=\"http://tours.360durango.com/82578/logo.gif\"
119
+ width=\"350\" height=\"288\"></logoImage></ad></event><event id=\"62749\"
120
+ date=\"2013-03-26\" endDate=\"2013-03-29\" time=\"00:00:00\" title=\"Spring
121
+ Cleaning Sale\" allDayEvent=\"1\" location=\"Durango Toy Depot\" type=\"Sale\"
122
+ dateMode=\"2\" siteId=\"77\" linkUrl=\"http://\" featured=\"0\">We're making
123
+ room for new toys and games! Save at least 25% off regular prices! Save even
124
+ more on \"bashed Boxes\". The toys are fine but the boxes aren't!<ad id=\"120223\"
125
+ name=\"Durango Toy Depot\" url=\"http://360Durango.com/Attractions/DurangoToyDepot.html\"
126
+ description=\"Your 3-D hands-on happenin' kind of experience in Downtown Durango!\"
127
+ eventCount=\"1\" couponCount=\"1\" jobCount=\"0\" locationCount=\"1\" popupCount=\"1\"
128
+ slideshowCount=\"1\" linkCount=\"6\"><address addr1=\"658 Main Ave\" city=\"Durango\"
129
+ state=\"CO\" zipCode=\"81301\" phone=\"970.403.8697\"></address><logoImage
130
+ url=\"http://tours.360durango.com/120223/logo.gif\" width=\"350\" height=\"217\"></logoImage></ad></event><event
131
+ id=\"46859\" date=\"2013-03-26\" expireDate=\"2013-03-26\" time=\"11:30:00\"
132
+ endTime=\"22:00:00\" title=\"Taco Tuesday!\" allDayEvent=\"0\" location=\"Gazpacho
133
+ - 431 East 2nd Ave.\" type=\"Food Special\" dateMode=\"4\" siteId=\"77\" linkText=\"Visit
134
+ Gazpacho New Mexican Cantina\" linkUrl=\"https://www.facebook.com/pages/Gazpacho-New-Mexican-Cooking-y-Cantina/284453653556?ref=ts#!/pages/Gazpacho-New-Mexican-Cooking-y-Cantina/284453653556?sk=info\"
135
+ featured=\"0\">Taco Tuesday! \n\nSPECIAL: Carne Asada Tacos &amp; Ice Cold
136
+ Tecates.<ad id=\"81241\" name=\"Gazpacho's\" url=\"http://360Durango.com/Attractions/gazpachos.html\"
137
+ eventCount=\"1\" couponCount=\"0\" jobCount=\"0\" locationCount=\"1\" popupCount=\"0\"
138
+ slideshowCount=\"0\" linkCount=\"0\"><address addr1=\"431 E 2ND AV\" city=\"DURANGO\"
139
+ state=\"CO\" zipCode=\"81301\" phone=\"970.259.9494\"></address></ad></event><event
140
+ id=\"47381\" date=\"2013-03-26\" expireDate=\"2013-04-02\" time=\"14:00:00\"
141
+ endTime=\"18:00:00\" title=\"Cuckoo's Chicken House &amp; Waterin' Hole\"
142
+ allDayEvent=\"0\" location=\"both Downtown and Tamarron Locations\" type=\"Drink
143
+ Special\" dateMode=\"4\" siteId=\"77\" price=\"Starting at $13.50\" linkText=\"Cuckoo's
144
+ FB Page\" linkUrl=\"http://www.facebook.com/Cuckoos.Chicken\" featured=\"0\">Pitcher
145
+ &amp; a Pound of Wings<ad id=\"117890\" name=\"Durango Happy Hours\" url=\"http://360Durango.com/Attractions/DurangoHappyHours.html\"
146
+ description=\"Durango Happy Hours is a one-stop place to find where to meet
147
+ your friends after work! \" eventCount=\"8\" couponCount=\"0\" jobCount=\"0\"
148
+ locationCount=\"1\" popupCount=\"0\" slideshowCount=\"0\" linkCount=\"0\"><address
149
+ addr1=\"700 Main Ave.\" addr2=\"Suite J\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
150
+ phone=\"970.375.3270\"></address><logoImage url=\"http://tours.360durango.com/117890/logo.gif\"
151
+ width=\"250\" height=\"412\"></logoImage></ad></event><event id=\"61021\"
152
+ date=\"2013-03-26\" expireDate=\"2014-04-30\" time=\"14:00:00\" endTime=\"18:00:00\"
153
+ title=\"Pitcher &amp; Pound - Happy Hour!\" allDayEvent=\"0\" location=\"Cuckoo's
154
+ Downtown\" type=\"Drink Special\" dateMode=\"4\" siteId=\"77\" price=\"$13.50\"
155
+ linkText=\"Like us on Facebook!\" linkUrl=\"https://www.facebook.com/Cuckoos.Chicken\"
156
+ featured=\"0\">What a Deal! - A pitcher of beer and a pound of our famous,
157
+ patented Chicken Wings for $13.50.\n\nM-F from 2-6pm\n\nCatch the game on
158
+ one of our TV's while soaking in the best happy hour in town!<ad id=\"81212\"
159
+ name=\"Cuckoos Chicken House &amp; Waterin' Hole\" url=\"http://360Durango.com/Attractions/cuckooschickenhouseandwaterinhole.html\"
160
+ description=\"Cuckoo's Chicken House &amp; Waterin' Hole - Durango Colorado
161
+ Family Restaurant, Sports Bar &amp; Grill Menu\" eventCount=\"4\" couponCount=\"0\"
162
+ jobCount=\"0\" locationCount=\"2\" popupCount=\"0\" slideshowCount=\"4\" linkCount=\"2\"><address
163
+ addr1=\"128 E College Drive\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
164
+ phone=\"970.259.6322\"></address><logoImage url=\"http://tours.360durango.com/81212/logo.gif\"
165
+ width=\"250\" height=\"117\"></logoImage></ad></event><event id=\"51901\"
166
+ date=\"2013-03-26\" expireDate=\"2013-07-01\" time=\"15:00:00\" endTime=\"18:00:00\"
167
+ title=\"Happy Hour\" allDayEvent=\"0\" type=\"Drink Special\" dateMode=\"4\"
168
+ siteId=\"77\" linkText=\"Join our Facebook Page\" linkUrl=\"https://www.facebook.com/bent.urbansportsbar\"
169
+ featured=\"0\">All draft and bottled beer $3.00\n\nMost appetizers 1/2 Off!<ad
170
+ id=\"82585\" name=\"Bent Urban Sports Bar\" url=\"http://360Durango.com/Attractions/benturbansportsbar.html\"
171
+ description=\"Bent is Durango's family-friendly local sports bar. Classic
172
+ American cuisine with a Cajun kick. Watch your favorite sports teams on 10
173
+ flat screen TV's. ANY GAME, ANYTIME!\" eventCount=\"7\" couponCount=\"0\"
174
+ jobCount=\"0\" locationCount=\"1\" popupCount=\"3\" slideshowCount=\"3\" linkCount=\"1\"><address
175
+ addr1=\"42 CR 250 \" addr2=\"Unit 400\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
176
+ phone=\"970.422.8077\"></address><logoImage url=\"http://tours.360durango.com/82585/logo.gif\"
177
+ width=\"250\" height=\"188\"></logoImage></ad></event><event id=\"56962\"
178
+ date=\"2013-03-26\" endDate=\"2013-04-01\" time=\"15:00:00\" endTime=\"18:00:00\"
179
+ title=\"Happy Hour\" allDayEvent=\"0\" location=\"Carver Brewing Company\"
180
+ type=\"Drink Special\" dateMode=\"2\" siteId=\"77\" price=\"$3 pints and well
181
+ drink cocktails\" linkUrl=\"http://carverbrewing.com\" featured=\"0\">3-6
182
+ pm EVERYDAY we offer up handcrafted brews for $3 a pint or any of our well
183
+ drinks. Well drinks are our house liquors poured as a single with your choice
184
+ of mixer. These include Smirnoff Vodka, Beefeater Gin, Cruzan Rum, Jose Cuervo
185
+ Silver Tequila, or Jim Beam Whiskey.<ad id=\"81201\" name=\"Carver Brewing
186
+ Company\" url=\"http://360Durango.com/Attractions/carversbrewing.html\" description=\"Colorado's
187
+ second-oldest Brew Pub, serving unique, traditional beers and premium foods
188
+ for breakfast, lunch, and dinner\" eventCount=\"6\" couponCount=\"0\" jobCount=\"0\"
189
+ locationCount=\"1\" popupCount=\"2\" slideshowCount=\"3\" linkCount=\"10\"><address
190
+ addr1=\"1022 Main Avenue\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
191
+ phone=\"970.259.2545\"></address><logoImage url=\"http://tours.360durango.com/81201/logo.gif\"
192
+ width=\"330\" height=\"306\"></logoImage></ad></event><event id=\"52328\"
193
+ date=\"2013-03-26\" expireDate=\"2013-07-01\" time=\"15:00:00\" endTime=\"18:00:00\"
194
+ title=\"Irish Embassy Happy Hour\" allDayEvent=\"0\" location=\"The Irish
195
+ Embassy Pub\" type=\"Drink Special\" dateMode=\"4\" siteId=\"77\" linkText=\"The
196
+ Irish Embassy Pub\" linkUrl=\"http://www.theirishembassypub.com\" featured=\"0\">$3.00
197
+ 20 oz. draft beers, well drinks, and wine\nDiscounted featured appetizers<ad
198
+ id=\"89690\" name=\"The Irish Embassy Pub\" url=\"http://360Durango.com/Attractions/TheIrishEmbassyPub.html\"
199
+ description=\"The Irish Embassy is Durango's downtown Pub, perfect for a nice
200
+ cold beer, live music and traditional Irish Fayre\" eventCount=\"8\" couponCount=\"0\"
201
+ jobCount=\"0\" locationCount=\"1\" popupCount=\"5\" slideshowCount=\"4\" linkCount=\"5\"><address
202
+ addr1=\"900 Main Ave.\" city=\"Durango\" state=\"CO\" zipCode=\"81301\" phone=\"970.403.1200\"
203
+ fax=\"970.403.1203\"></address><logoImage url=\"http://tours.360durango.com/89690/logo.gif\"
204
+ width=\"153\" height=\"175\"></logoImage></ad></event><event id=\"62315\"
205
+ date=\"2013-03-26\" endDate=\"2013-04-26\" time=\"15:00:00\" title=\"X Marks
206
+ the Spot\" allDayEvent=\"0\" type=\"Arts / Exhibits\" dateMode=\"2\" siteId=\"77\"
207
+ linkText=\"99X Contests\" linkUrl=\"http://99xdurango.com/contests\" featured=\"0\">Listen
208
+ up to 99.7 fm or follow us on Facebook throughout the week for clues on where
209
+ to find the 99X Jeep on Friday afternoons. \nFind us first and you could win
210
+ $50 Durango Dollars from the Chamber of Commerce and a prize from our sponsor
211
+ PLUS get registered for our Grand Prize Giveaway, a trip for two to Moab complete
212
+ with skydiving, whitewater rafting, and off-roading tour at our 99X Birthday
213
+ Bash at Derailed. \nListen. Search. Win<ad id=\"152054\" name=\"99x Durango's
214
+ Hit Music Station\" url=\"http://360Durango.com/Attractions/99xDurangosHitMusicStation.html\"
215
+ description=\"If it's a hit... it's on 99X \" eventCount=\"0\" couponCount=\"0\"
216
+ jobCount=\"1\" locationCount=\"1\" popupCount=\"0\" slideshowCount=\"1\" linkCount=\"2\"><address
217
+ addr1=\"1911 Main Ave., Suite 100\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
218
+ phone=\"970.247.1240\" fax=\"970.247.1771\"></address><logoImage url=\"http://tours.360durango.com/152054/logo.gif\"
219
+ width=\"300\" height=\"263\"></logoImage></ad></event><event id=\"48182\"
220
+ date=\"2013-03-26\" expireDate=\"2013-04-13\" time=\"16:00:00\" endTime=\"19:00:00\"
221
+ title=\"The Irish Embassy Pub\" allDayEvent=\"0\" location=\"The Irish Embassy
222
+ Pub\" type=\"Drink Special\" dateMode=\"4\" siteId=\"77\" linkText=\"Visit
223
+ The Irish Embassy Pub\" linkUrl=\"http://www.360durango.com/Restaurants/TheIrishEmbassyPub.html\"
224
+ featured=\"0\">$2.5 Draft &amp; Bottle Beers / $2.50 House Wines / $2.50 Well
225
+ Drinks<ad id=\"117890\" name=\"Durango Happy Hours\" url=\"http://360Durango.com/Attractions/DurangoHappyHours.html\"
226
+ description=\"Durango Happy Hours is a one-stop place to find where to meet
227
+ your friends after work! \" eventCount=\"8\" couponCount=\"0\" jobCount=\"0\"
228
+ locationCount=\"1\" popupCount=\"0\" slideshowCount=\"0\" linkCount=\"0\"><address
229
+ addr1=\"700 Main Ave.\" addr2=\"Suite J\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
230
+ phone=\"970.375.3270\"></address><logoImage url=\"http://tours.360durango.com/117890/logo.gif\"
231
+ width=\"250\" height=\"412\"></logoImage></ad></event><event id=\"51141\"
232
+ date=\"2013-03-26\" expireDate=\"2013-06-25\" time=\"16:00:00\" endTime=\"22:00:00\"
233
+ title=\"German Nite\" allDayEvent=\"0\" type=\"Food Special\" dateMode=\"4\"
234
+ siteId=\"77\" price=\"$8.50\" linkText=\"Like us on Facebook!\" linkUrl=\"https://www.facebook.com/pages/Olde-Tymers-Cafe/107138292687599\"
235
+ featured=\"0\">Brat or Schnitzel\n\nSince 1981 Olde Tymers Cafe has been bringing
236
+ people together with a relaxing atmosphere, great food, and libations.<ad
237
+ id=\"81277\" name=\"Olde Tymers Caf&#xE9;\" url=\"http://360Durango.com/Attractions/oldetymerscafe.html\"
238
+ description=\"Downtown Durango's Best Burger Cafe with Outdoor Patio!\" eventCount=\"6\"
239
+ couponCount=\"0\" jobCount=\"0\" locationCount=\"1\" popupCount=\"0\" slideshowCount=\"2\"
240
+ linkCount=\"2\"><address addr1=\"1000 Main Avenue\" city=\"Durango\" state=\"CO\"
241
+ zipCode=\"81301\" phone=\"970.259.2990\"></address></ad></event><event id=\"52746\"
242
+ date=\"2013-03-26\" expireDate=\"2013-07-24\" time=\"16:00:00\" endTime=\"18:30:00\"
243
+ title=\"Happy Hour\" allDayEvent=\"0\" type=\"Drink Special\" dateMode=\"4\"
244
+ siteId=\"77\" linkText=\"Mutu's Appetizers Menu\" linkUrl=\"http://mutusitaliankitchen.com/menu.asp\"
245
+ featured=\"0\">$1 Off every drink\n1/2 Price appetizers\n\nEnjoy a handcrafted
246
+ cocktail or glass of wine from our extensive selection in our spacious bar
247
+ and lounge.<ad id=\"81270\" name=\"Mutu's Italian Kitchen\" url=\"http://360Durango.com/Attractions/mutusitaliankitchen.html\"
248
+ description=\"Uniquely blended, Durango's only sit-down Italian restaurant
249
+ is family-friendly, reasonably priced &amp; delicious!\" eventCount=\"6\"
250
+ couponCount=\"0\" jobCount=\"0\" locationCount=\"1\" popupCount=\"0\" slideshowCount=\"3\"
251
+ linkCount=\"10\"><address addr1=\"701 E 2nd Ave.\" city=\"Durango\" state=\"CO\"
252
+ zipCode=\"81301\" phone=\"970.375.2701\"></address><logoImage url=\"http://tours.360durango.com/81270/logo.gif\"
253
+ width=\"350\" height=\"124\"></logoImage></ad></event><event id=\"46826\"
254
+ date=\"2013-03-26\" expireDate=\"2014-03-18\" time=\"16:00:00\" endTime=\"18:00:00\"
255
+ title=\"Tapas Tuesday\" allDayEvent=\"0\" location=\"Eno\" type=\"Food / Beverage\"
256
+ dateMode=\"4\" siteId=\"77\" linkUrl=\"http://\" featured=\"0\">Free $7 or
257
+ less tapa with the purchase of two alcoholic beverages<ad id=\"122154\" name=\"Eno\"
258
+ url=\"http://360Durango.com/Attractions/Eno.html\" description=\"Sit, sip,
259
+ and savor in an ambiance of comfort ..... Wine, coffee, cocktails, and tapas
260
+ in a contemporary setting.\" eventCount=\"6\" couponCount=\"0\" jobCount=\"0\"
261
+ locationCount=\"1\" popupCount=\"6\" slideshowCount=\"3\" linkCount=\"6\"><address
262
+ addr1=\"723 E. Second Avenue\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
263
+ phone=\"970.385.0105\"></address></ad></event><event id=\"62314\" date=\"2013-03-26\"
264
+ endDate=\"2014-03-01\" time=\"16:00:00\" title=\"Cody's Conundrum on 99X\"
265
+ allDayEvent=\"0\" type=\"Arts / Exhibits\" dateMode=\"2\" siteId=\"77\" linkText=\"99X
266
+ Contests\" linkUrl=\"http://99xdurango.com/contests\" featured=\"0\">Listen
267
+ up to 99.7 fm in the 4 o'clock hour for Cody's Conundrum, a daily trivia contest
268
+ where you can win awesome prizes from 360Durango.<ad id=\"152054\" name=\"99x
269
+ Durango's Hit Music Station\" url=\"http://360Durango.com/Attractions/99xDurangosHitMusicStation.html\"
270
+ description=\"If it's a hit... it's on 99X \" eventCount=\"0\" couponCount=\"0\"
271
+ jobCount=\"1\" locationCount=\"1\" popupCount=\"0\" slideshowCount=\"1\" linkCount=\"2\"><address
272
+ addr1=\"1911 Main Ave., Suite 100\" city=\"Durango\" state=\"CO\" zipCode=\"81301\"
273
+ phone=\"970.247.1240\" fax=\"970.247.1771\"></address><logoImage url=\"http://tours.360durango.com/152054/logo.gif\"
274
+ width=\"300\" height=\"263\"></logoImage></ad></event></events></city-getUpcomingEventsResponse>\n"
275
+ http_version:
276
+ recorded_at: Tue, 26 Mar 2013 22:30:11 GMT
277
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,96 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.360durango.com/1.0/ad.getEvents?adId=89690
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Wed, 12 Dec 2012 17:31:39 GMT
17
+ Server:
18
+ - Apache/2.2.3 (Red Hat)
19
+ X-Powered-By:
20
+ - PHP/5.3.15
21
+ Set-Cookie:
22
+ - PHPSESSID=rh0qnssf09sg2l2fgks89bl0j5; path=/
23
+ Expires:
24
+ - Mon, 26 Jul 1997 05:00:00 GMT
25
+ Cache-Control:
26
+ - no-store, no-cache, must-revalidate
27
+ - post-check=0, pre-check=0
28
+ Pragma:
29
+ - no-cache
30
+ Last-Modified:
31
+ - Wed, 12 Dec 2012 17:31:39 GMT
32
+ Content-Length:
33
+ - '4320'
34
+ Connection:
35
+ - close
36
+ Content-Type:
37
+ - text/xml
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! '<?xml version="1.0"?>
41
+
42
+ <ad-getEventsResponse><events><event id="42881" date="2012-12-12" expireDate="2013-04-03"
43
+ time="00:00:00" title="Kids Eat Half Price" allDayEvent="1" location="The
44
+ Irish Embassy Pub" type="Food Special" dateMode="4" siteId="77" linkUrl="http://www.theirishembassypub.com"
45
+ featured="1" description="kids eat half price all day" imageURL="http://tours.360durango.com/89690/event_42881.jpg"></event><event
46
+ id="52329" date="2012-12-12" expireDate="2013-07-01" time="15:00:00" endTime="18:00:00"
47
+ title="Irish Embassy Happy Hour" allDayEvent="0" location="The Irish Embassy
48
+ Pub" type="Drink Special" dateMode="4" siteId="77" linkText="The Irish Embassy
49
+ Pub" linkUrl="http://www.theirishembassypub.com" featured="0" description="$2.50
50
+ 20 oz. draft beers&#10;$2.50 wine&#10;$3.00 well drinks&#10;Discounted featured
51
+ appetizers" imageURL="http://tours.360durango.com/89690/event_52329.jpg"></event><event
52
+ id="48728" date="2012-12-12" expireDate="2013-04-03" time="20:30:00" endTime="22:30:00"
53
+ title="Pub Quiz" allDayEvent="0" location="The Irish Embassy Pub" type="Games
54
+ / Tournaments" dateMode="4" siteId="77" price="free" linkUrl="http://www.theirishembassypub.com"
55
+ featured="0" description="Test your knowledge with general trivia! Weekly
56
+ winning team receives a bottle of champagne; monthly winners receive $100
57
+ bar tab! No need to sign up, just show up!" imageURL="http://tours.360durango.com/89690/event_48728.jpg"></event><event
58
+ id="52330" date="2012-12-13" expireDate="2013-07-01" time="15:00:00" endTime="18:00:00"
59
+ title="Irish Embassy Happy Hour" allDayEvent="0" location="The Irish Embassy
60
+ Pub" type="Drink Special" dateMode="4" siteId="77" linkText="The Irish Embassy
61
+ Pub" linkUrl="http://www.theirishembassypub.com" featured="0" description="$2.50
62
+ 20 oz. draft beers&#10;$2.50 wine&#10;$3.00 well drinks&#10;Discounted featured
63
+ appetizers" imageURL="http://tours.360durango.com/89690/event_52330.jpg"></event><event
64
+ id="52331" date="2012-12-14" expireDate="2013-07-01" time="15:00:00" endTime="18:00:00"
65
+ title="Irish Embassy Happy Hour" allDayEvent="0" location="The Irish Embassy
66
+ Pub" type="Drink Special" dateMode="4" siteId="77" linkText="The Irish Embassy
67
+ Pub" linkUrl="http://www.theirishembassypub.com" featured="0" description="$2.50
68
+ 20 oz. draft beers&#10;$2.50 wine&#10;$3.00 well drinks&#10;Discounted featured
69
+ appetizers" imageURL="http://tours.360durango.com/89690/event_52331.jpg"></event><event
70
+ id="48729" date="2012-12-16" expireDate="2013-04-07" time="12:30:00" endTime="16:00:00"
71
+ title="Traditional Irish Music Jam Session" allDayEvent="0" location="The
72
+ Irish Embassy Pub" type="Concert / Live Music" dateMode="4" siteId="77" price="free"
73
+ linkText="Four Corners Celtic" linkUrl="http://www.4cornersceltic.com" featured="0"
74
+ description="bring your instrument and join in or watch the live entertainment!"
75
+ imageURL="http://tours.360durango.com/89690/event_48729.jpg"></event><event
76
+ id="57435" date="2012-12-16" time="18:30:00" endTime="22:00:00" title="Celtic
77
+ Christmas" allDayEvent="0" location="The Irish Embassy Pub" type="Concert
78
+ / Live Music" dateMode="1" siteId="77" price="free" linkUrl="http://www.theirishembassypub.com"
79
+ featured="0" description="Enjoy live music and dancing featuring Patrick Crossing,
80
+ celebrating Christmas in the Celtic tradition." imageURL="http://tours.360durango.com/89690/event_57435.jpg"></event><event
81
+ id="42880" date="2012-12-17" expireDate="2013-04-01" time="00:00:00" title="$7
82
+ Fish &amp; Chips" allDayEvent="1" location="The Irish Embassy Pub" type="Food
83
+ Special" dateMode="4" siteId="77" price="$7" linkText="Click Here for More
84
+ Info" linkUrl="http://www.theirishembassypub.com" featured="0" description="Half
85
+ off full order of fish and chips" imageURL="http://tours.360durango.com/89690/event_42880.jpg"></event><event
86
+ id="58652" date="2012-12-17" expireDate="2013-07-01" time="15:00:00" endTime="18:00:00"
87
+ title="Irish Embassy Happy Hour" allDayEvent="0" location="The Irish Embassy
88
+ Pub" type="Drink Special" dateMode="4" siteId="77" linkText="The Irish Embassy
89
+ Pub" linkUrl="http://www.theirishembassypub.com" featured="0" description="$2.50
90
+ 20 oz. draft beers&#10;$2.50 wine&#10;$3.00 well drinks&#10;Discounted featured
91
+ appetizers" imageURL="http://tours.360durango.com/89690/event_58652.jpg"></event></events></ad-getEventsResponse>
92
+
93
+ '
94
+ http_version:
95
+ recorded_at: Wed, 12 Dec 2012 17:31:41 GMT
96
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,49 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.360durango.com/1.0/city.getEventAreas?
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Tue, 26 Mar 2013 19:22:34 GMT
17
+ Server:
18
+ - Apache/2.2.3 (Red Hat)
19
+ X-Powered-By:
20
+ - PHP/5.3.15
21
+ Set-Cookie:
22
+ - PHPSESSID=a4nl0st07r69i88u6ql971f7t6; path=/
23
+ Expires:
24
+ - Mon, 26 Jul 1997 05:00:00 GMT
25
+ Cache-Control:
26
+ - no-store, no-cache, must-revalidate
27
+ - post-check=0, pre-check=0
28
+ Pragma:
29
+ - no-cache
30
+ Last-Modified:
31
+ - Tue, 26 Mar 2013 19:22:34 GMT
32
+ Content-Length:
33
+ - '537'
34
+ Connection:
35
+ - close
36
+ Content-Type:
37
+ - text/xml
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! '<?xml version="1.0"?>
41
+
42
+ <city-getEventAreasResponse page="1" resultsPerPage="20" totalPages="1" totalResults="1"><eventAreas><eventArea
43
+ id="736" name="Bayfield"></eventArea>
44
+ </eventAreas></city-getEventAreasResponse>
45
+
46
+ '
47
+ http_version:
48
+ recorded_at: Tue, 26 Mar 2013 19:22:34 GMT
49
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.360durango.com/1.0/ad.getCoupons?adId=123094
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Mon, 18 Mar 2013 04:30:33 GMT
17
+ Server:
18
+ - Apache/2.2.3 (Red Hat)
19
+ X-Powered-By:
20
+ - PHP/5.3.15
21
+ Set-Cookie:
22
+ - PHPSESSID=nbb2jpavqv0rnfto6ntd1jns63; path=/
23
+ Expires:
24
+ - Mon, 26 Jul 1997 05:00:00 GMT
25
+ Cache-Control:
26
+ - no-store, no-cache, must-revalidate
27
+ - post-check=0, pre-check=0
28
+ Pragma:
29
+ - no-cache
30
+ Last-Modified:
31
+ - Mon, 18 Mar 2013 04:30:33 GMT
32
+ Content-Length:
33
+ - '419'
34
+ Connection:
35
+ - close
36
+ Content-Type:
37
+ - text/xml
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! '<?xml version="1.0"?>
41
+
42
+ <ad-getCouponsResponse><coupons><coupon id="30229" name="Early Bird Booking
43
+ Discount" begin="2012-10-17" expire="2013-04-01" accept_offline="1" accept_online="0"
44
+ acceptMobile="1" acceptPrint="1"><offer>Save 10% on ALL Trips in 2013 when
45
+ you book before April 1st.</offer><restrictions>Must Mention Discount At Time
46
+ of Booking. No Refunds.</restrictions></coupon></coupons></ad-getCouponsResponse>
47
+
48
+ '
49
+ http_version:
50
+ recorded_at: Mon, 18 Mar 2013 04:30:35 GMT
51
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.360durango.com/1.0/ad.getEvents?adId=81213
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Wed, 12 Dec 2012 03:35:57 GMT
17
+ Server:
18
+ - Apache/2.2.3 (Red Hat)
19
+ X-Powered-By:
20
+ - PHP/5.3.15
21
+ Set-Cookie:
22
+ - PHPSESSID=u9tqi6ovteo1ttdj3e5orkl5e6; path=/
23
+ Expires:
24
+ - Mon, 26 Jul 1997 05:00:00 GMT
25
+ Cache-Control:
26
+ - no-store, no-cache, must-revalidate
27
+ - post-check=0, pre-check=0
28
+ Pragma:
29
+ - no-cache
30
+ Last-Modified:
31
+ - Wed, 12 Dec 2012 03:35:57 GMT
32
+ Content-Length:
33
+ - '583'
34
+ Connection:
35
+ - close
36
+ Content-Type:
37
+ - text/xml
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! '<?xml version="1.0"?>
41
+
42
+ <ad-getEventsResponse><events><event id="58794" date="2012-12-11" endDate="2012-12-13"
43
+ time="17:00:00" endTime="19:00:00" title="TWO FOR ONE ENTREES" allDayEvent="0"
44
+ location="Cyprus Cafe" type="Food Special" dateMode="2" siteId="77" linkText="Click
45
+ Here to Print Coupon" linkUrl="http://www.360durango.com/coupon/30787" featured="0"
46
+ description="Present this coupon Monday through Thursday nights between 5p.m.
47
+ and 7p.m. to receive your second entree FREE." imageURL="http://tours.360durango.com/81213/event_58794.jpg"></event></events></ad-getEventsResponse>
48
+
49
+ '
50
+ http_version:
51
+ recorded_at: Wed, 12 Dec 2012 03:35:57 GMT
52
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.360durango.com/1.0/city.getUpcomingEvents?areaId=592
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Tue, 26 Mar 2013 23:05:54 GMT
17
+ Server:
18
+ - Apache/2.2.3 (Red Hat)
19
+ X-Powered-By:
20
+ - PHP/5.3.15
21
+ Set-Cookie:
22
+ - PHPSESSID=160julahei3dh4nah83t2g0h11; path=/
23
+ Expires:
24
+ - Mon, 26 Jul 1997 05:00:00 GMT
25
+ Cache-Control:
26
+ - no-store, no-cache, must-revalidate
27
+ - post-check=0, pre-check=0
28
+ Pragma:
29
+ - no-cache
30
+ Last-Modified:
31
+ - Tue, 26 Mar 2013 23:05:54 GMT
32
+ Content-Length:
33
+ - '1304'
34
+ Connection:
35
+ - close
36
+ Content-Type:
37
+ - text/xml
38
+ body:
39
+ encoding: US-ASCII
40
+ string: ! '<?xml version="1.0"?>
41
+
42
+ <city-getUpcomingEventsResponse page="1" resultsPerPage="20" totalPages="1"
43
+ totalResults="1"><events><event id="55504" date="2013-04-17" expireDate="2013-12-04"
44
+ time="18:30:00" title="Wednesday Night Group Runs" allDayEvent="0" location="Meet
45
+ at Backcountry Experience" type="Sports" dateMode="4" siteId="77" price="Free!"
46
+ featured="0">Join us for fun group runs on roads and trails every Wednesday
47
+ night! This is a social, no-drop run for all levels! Meet at BCEXP for a 6:30
48
+ pm departure. We''ll run where the group wants, for how long the group wants
49
+ and then go out for discounted drinks and food at Cosmo Durango or Carver
50
+ Brewing Company!<ad id="82669" name="Backcountry Experience" url="http://360Durango.com/Attractions/BackcountryExperience.html"
51
+ description="Durango''s favorite outdoor shop and outfitter. Featuring unique
52
+ brands, demo/rental equipment and premium customer care." eventCount="1" couponCount="0"
53
+ jobCount="0" locationCount="2" popupCount="1" slideshowCount="2" linkCount="4"><address
54
+ addr1="1205 Camino Del Rio" city="Durango" state="CO" zipCode="81301" phone="970.247.5830"
55
+ fax="970.247.8013"></address><logoImage url="http://tours.360durango.com/82669/logo.gif"
56
+ width="250" height="218"></logoImage></ad></event></events></city-getUpcomingEventsResponse>
57
+
58
+ '
59
+ http_version:
60
+ recorded_at: Tue, 26 Mar 2013 23:05:54 GMT
61
+ recorded_with: VCR 2.4.0