homeaway-api 1.0.1 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ed30a44e51cf0960473944dbe6a4419ab76d0751
4
- data.tar.gz: 288122b7c1794b6a32eb15b1b7a255dd73922cb7
3
+ metadata.gz: 87940e1ae0baa8fdae8331a9baad7b0db4d6436d
4
+ data.tar.gz: 2f084f225ccc9b15a83e02771295ee4cb8e3a7eb
5
5
  SHA512:
6
- metadata.gz: 455a311dc6b2d66bee6ef2aa5b7c5ceddafaff94bae51bb1efd3fde115650555a6ea17853e1a7ecb12c743d241c24de1972dccacca05114f1a72a1a071c48cf0
7
- data.tar.gz: 0e966eb06e019499e0a44394bc98c272be2d76b62372869367dea1b7bb079f40fdd2df80f99debec8814c5b8815bab3c308bb61de47243aa869fe8d2846d23d3
6
+ metadata.gz: 04e32f37174e358729c67a2845382007d0ac4f8fddc28475604247f58e0d2590515d335289bf67b17cbcaa673900a298f769b4375600d61a5b638e9d48be505e
7
+ data.tar.gz: ecc599039662e2b1d3df53a5c87609dafcebe3f02268a3b5db414c128ba777c47d9748be8c1dff3d15d7d8de7ee97a3e8b2e04013791b5f145888d95a6ebd75b
data/README.md CHANGED
@@ -122,6 +122,30 @@ $ hacurl -i <your_client_id> -s <your_client_secret> /public/listing?id=123456
122
122
 
123
123
  The full API documentation is located at: https://www.homeaway.com/platform/documentation
124
124
 
125
+ ## Running tests
126
+
127
+ Create a file `internal/spec_helper_extensions.rb` with:
128
+
129
+ ```ruby
130
+ def client_id
131
+ "your-application-client-id"
132
+ end
133
+
134
+ def client_secret
135
+ "your-application-client-secret"
136
+ end
137
+
138
+ def test_email
139
+ "your-homeaway-email"
140
+ end
141
+
142
+ def test_password
143
+ "your-homeaway_password"
144
+ end
145
+ ```
146
+
147
+ Run specs with `bundle exec rspec spec`.
148
+
125
149
  ## Contributing
126
150
 
127
151
  1. Fork it https://github.com/homeaway/homeaway_api_ruby
@@ -15,6 +15,7 @@
15
15
 
16
16
  require 'homeaway/api/domain/listing'
17
17
  require 'homeaway/api/domain/listing_reviews'
18
+ require 'homeaway/api/domain/listing_review'
18
19
  require 'homeaway/api/domain/search'
19
20
  require 'homeaway/api/domain/quote'
20
21
  require 'homeaway/api/domain/my_listings'
@@ -30,6 +31,7 @@ module HomeAway
30
31
  class Client
31
32
  include HomeAway::API::Domain::Listing
32
33
  include HomeAway::API::Domain::ListingReviews
34
+ include HomeAway::API::Domain::ListingReview
33
35
  include HomeAway::API::Domain::Search
34
36
  include HomeAway::API::Domain::Quote
35
37
  include HomeAway::API::Domain::MyListings
@@ -0,0 +1,35 @@
1
+ # Copyright (c) 2015 HomeAway.com, Inc.
2
+ # All rights reserved. http://www.homeaway.com
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ module HomeAway
17
+ module API
18
+ module Domain
19
+ module ListingReview
20
+
21
+ # Returns a single review given its uuid
22
+ #
23
+ # analogous to calling a GET on API url /public/listingReview
24
+ #
25
+ # @param uuid [String] The review ID in UUID form
26
+ def listing_review(uuid, opts={})
27
+ params = {
28
+ 'id' => HomeAway::API::Util::Validators.uuid(uuid.to_s)
29
+ }.merge(HomeAway::API::Util::Validators.query_keys(opts))
30
+ get '/public/listingReview', params
31
+ end
32
+ end
33
+ end
34
+ end
35
+ end
@@ -15,6 +15,6 @@
15
15
 
16
16
  module HomeAway
17
17
  module API
18
- VERSION = '1.0.1'
18
+ VERSION = '1.1.0'
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeaway-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie Meyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-29 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -324,6 +324,7 @@ files:
324
324
  - lib/homeaway/api/domain/client_includes.rb
325
325
  - lib/homeaway/api/domain/conversation.rb
326
326
  - lib/homeaway/api/domain/listing.rb
327
+ - lib/homeaway/api/domain/listing_review.rb
327
328
  - lib/homeaway/api/domain/listing_reviews.rb
328
329
  - lib/homeaway/api/domain/me.rb
329
330
  - lib/homeaway/api/domain/my_inbox.rb