homeaway-api 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/homeaway/api/domain/listing.rb +3 -1
- data/lib/homeaway/api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d099f1551757d6494d4cae1249ef6a7762746c28
|
4
|
+
data.tar.gz: 14aedb76ab9d9ec47fc453ca5aea228bc9a16931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75834e85fd8629a6e867d74c6a3eecbe07e641bbc6cb03d3be4969867d545ed0776bfc52bc1be31f64014399232933f1c466ed3719bd159cfd080b8b69ca9d6c
|
7
|
+
data.tar.gz: b8461bd1783e5c57a6114b97b0052fd5c908f62658f73b3dc17ea4cc67644aad1b538b6ef62a1d6d9271a57a196249ae9a4fcdec616e94f1c2e424535383c930
|
@@ -27,9 +27,11 @@ module HomeAway
|
|
27
27
|
#
|
28
28
|
# @param id [String] The id of the listing.
|
29
29
|
# @option opts [String] :q Use the q parameter to fetch specific listing details. Valid options are AVAILABILITY, DETAILS, LOCATIONS, PHOTOS, RATES, REVIEWS. If no value is given, the listing is returned with minimal content. Can be an array of multiple values.
|
30
|
+
# @option opts [String] :l Use the l parameter to specify the locale. For example: 'fr'
|
30
31
|
# @return [HomeAway::API::Response] the result of the call to the API
|
31
|
-
def listing(id, q=nil)
|
32
|
+
def listing(id, q=nil, l=nil)
|
32
33
|
params = {'id' => id.to_s}
|
34
|
+
params['locale'] = l unless l == nil
|
33
35
|
params['q'] = HomeAway::API::Util::Validators.array(q) unless q == nil
|
34
36
|
get '/public/listing', HomeAway::API::Util::Validators.query_keys(params)
|
35
37
|
end
|
data/lib/homeaway/api/version.rb
CHANGED
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.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Meyer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|
@@ -361,7 +361,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
361
361
|
version: '0'
|
362
362
|
requirements: []
|
363
363
|
rubyforge_project:
|
364
|
-
rubygems_version: 2.6.
|
364
|
+
rubygems_version: 2.6.8
|
365
365
|
signing_key:
|
366
366
|
specification_version: 4
|
367
367
|
summary: Ruby SDK for interacting with the HomeAway API
|