nineflats-api 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +0 -4
- data/README.md +15 -0
- data/Rakefile +16 -3
- data/lib/nineflats-api/base.rb +7 -1
- data/lib/nineflats-api/calendar.rb +17 -0
- data/lib/nineflats-api/paginated_array.rb +10 -0
- data/lib/nineflats-api/photo.rb +17 -0
- data/lib/nineflats-api/place.rb +81 -7
- data/lib/nineflats-api/prices.rb +3 -4
- data/lib/nineflats-api/review.rb +18 -0
- data/lib/nineflats-api/user.rb +22 -8
- data/lib/nineflats-api/version.rb +1 -1
- data/nineflats-api.gemspec +5 -2
- data/spec/fixtures/place.json +66 -0
- data/spec/fixtures/place_calendar.json +47 -0
- data/spec/fixtures/place_photos.json +163 -0
- data/spec/fixtures/place_prices.json +29 -0
- data/spec/fixtures/place_reviews.json +23 -0
- data/spec/fixtures/search_result.json +612 -0
- data/spec/fixtures/user.json +19 -0
- data/spec/fixtures/user_favorites.json +472 -0
- data/spec/fixtures.rb +16 -0
- data/spec/place_calendar_spec.rb +39 -0
- data/spec/place_photos_spec.rb +55 -0
- data/spec/place_prices_spec.rb +67 -0
- data/spec/place_reviews_spec.rb +57 -0
- data/spec/place_spec.rb +13 -37
- data/spec/search_spec.rb +55 -0
- data/spec/spec_helper.rb +4 -4
- data/spec/user_spec.rb +52 -6
- metadata +76 -11
- data/.rvmrc +0 -1
- data/spec/fixtures/place.rb +0 -47
- data/spec/fixtures/place_prices.rb +0 -27
- data/spec/fixtures/user.rb +0 -17
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"total_entries": 2,
|
3
|
+
"reviews": [{
|
4
|
+
"review": {
|
5
|
+
"user_text": "Jan is a really nice outgoing person. I had a great time at his place. You should ask him for that tastey Polish vodka!!",
|
6
|
+
"place_text": "It\'s a nice and lovely flat in a really great area of cologne. everything is in walking distance and it is great start to explore the cologne and its nightlife.",
|
7
|
+
"place_stars": 5,
|
8
|
+
"language": "en"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"review": {
|
13
|
+
"user_text": "Ich habe mich sehr gefreut, dass Jan abends ein paar Stunden Zeit fuer mich hatte um mir Koeln bei Nacht zu zeigen und mich mit einem ungefilterten Superzeug bekannt machte.",
|
14
|
+
"place_text": "Authentisches und persoenliches wohnen, in Jans Wohnung im Superviertel. Alles da was man braucht und nicht so steril wie Ferienwohnungen oft sind. I LIKE.",
|
15
|
+
"place_stars": 5,
|
16
|
+
"language": "de"
|
17
|
+
}
|
18
|
+
}],
|
19
|
+
"links": [{
|
20
|
+
"rel": "self",
|
21
|
+
"href": "http://api.9flats.com/api/v1/places/harmony-villas-close-to-the-sea/reviews?client_id=WfKWrPywnEbMhlifGlrsLu2ULfvTwxrKQji5eg0S"
|
22
|
+
}]
|
23
|
+
}
|