VIAJERO 0.1.73 → 0.1.74
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 +4 -4
- data/lib/VIAJERO/rentInfo.rb +11 -3
- data/lib/VIAJERO/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0fe2ea7ea7042b90de3cf90764e91068ce862fe
|
4
|
+
data.tar.gz: dc0aa2dcb6598c6d2e6cb757bc970775cbe74365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dad57615c9acc6aefa009812ef8a1f084764ef93d4ffe32697822399cc3cd1961c169afb65d59180560101e848dc98ce09fc9beab5554f192f585fa8a8145aa
|
7
|
+
data.tar.gz: c4bd30958437b2f1c2d9098d42f2ad00851362ab67a64484636fffad05e271d2c2b36316a3029f42451678badd840733b87ac482d7f7cbe72d4c82db5cd6387b
|
data/lib/VIAJERO/rentInfo.rb
CHANGED
@@ -25,11 +25,19 @@ module Airbnb
|
|
25
25
|
private
|
26
26
|
def room(item)
|
27
27
|
#item = item['listing']
|
28
|
+
room_id = item['listing']['id']
|
28
29
|
room = {
|
29
|
-
|
30
|
+
id: room_id,
|
30
31
|
name: item['listing']['name'],
|
31
|
-
|
32
|
-
|
32
|
+
# need to get price from airbnbAPI
|
33
|
+
# Basic Sample Request:
|
34
|
+
# https://api.airbnb.com/v2/listings/5116458?client_id=3092nxybyb0otqw18e8nh5nty&_format=v1_legacy_for_p3
|
35
|
+
address: item['listing']['public_address'],
|
36
|
+
airbnb_link: "https://www.airbnb.com.tw/rooms/" + room_id.to_s,
|
37
|
+
roomImg: item['listing']['picture_url'],
|
38
|
+
bed: item['listing']['beds'],
|
39
|
+
roomRank: item['listing']['star_rating']
|
40
|
+
|
33
41
|
}
|
34
42
|
end
|
35
43
|
|
data/lib/VIAJERO/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: VIAJERO
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yvonne Shih
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2017-01-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http
|