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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 312536d0e54648cdaf2b2e5a01ea15c2d458a41c
4
- data.tar.gz: d037a9736c868632361251290e369673561fa38d
3
+ metadata.gz: b0fe2ea7ea7042b90de3cf90764e91068ce862fe
4
+ data.tar.gz: dc0aa2dcb6598c6d2e6cb757bc970775cbe74365
5
5
  SHA512:
6
- metadata.gz: af35cc99da5da659b9df7fdc84a2513ab5438782cbe1a4f00491ef720936043ab9ced3fbbb4c370a6428a3fbc0364c91772b3ca1c227ebc3435c436046ec246a
7
- data.tar.gz: f495a8a21225904b52b9d1c499d5d694597c07d9783cc606eb667b8fd40e688e421a2baf014df8ba93a95ea9e22d90094f083152fb314683f84a7351e72c210a
6
+ metadata.gz: 7dad57615c9acc6aefa009812ef8a1f084764ef93d4ffe32697822399cc3cd1961c169afb65d59180560101e848dc98ce09fc9beab5554f192f585fa8a8145aa
7
+ data.tar.gz: c4bd30958437b2f1c2d9098d42f2ad00851362ab67a64484636fffad05e271d2c2b36316a3029f42451678badd840733b87ac482d7f7cbe72d4c82db5cd6387b
@@ -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
- city: item['listing']['city'],
30
+ id: room_id,
30
31
  name: item['listing']['name'],
31
- pic_url: item['listing']['picture_url'],
32
- id: item['listing']['id']
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
 
@@ -1,3 +1,3 @@
1
1
  module VIAJERO
2
- VERSION = '0.1.73'
2
+ VERSION = '0.1.74'
3
3
  end
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.73
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: 2016-12-18 00:00:00.000000000 Z
13
+ date: 2017-01-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http