expedia_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/expedia_api/entities/search_entity.rb +6 -2
- data/lib/expedia_api/hotel_response_list.rb +8 -0
- data/lib/expedia_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 557dcad02c9d0ee37da7efc4dde94df088a8d6ec
|
4
|
+
data.tar.gz: 16bd2b9a9024a8bb9e3db4610e0fb40c91b3d04e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 653c7dd90f805d67bab75c142c9d020df00737c780588c4f20f1c2505fce1934863248716cef27c6384997ce59263fed180e5acd07e53e6f9d40b5a55509037d
|
7
|
+
data.tar.gz: ec5d21508df926d51a626c87f2dc00e889e56605f1fca868ab49683188c3b4f13b43f8b2877d6d468339c203eac14e04cd329081f2abd0d2415fbcd016c1d96a
|
data/.gitignore
CHANGED
@@ -4,11 +4,15 @@ module ExpediaApi
|
|
4
4
|
attr_reader :raw_data
|
5
5
|
|
6
6
|
def initialize(raw_data)
|
7
|
-
@raw_data = raw_data
|
7
|
+
@raw_data = raw_data || {}
|
8
8
|
end
|
9
9
|
|
10
10
|
def available?
|
11
|
-
|
11
|
+
if raw_data[:Price]
|
12
|
+
!!raw_data[:Price].fetch(:TotalRate, nil)
|
13
|
+
else
|
14
|
+
false
|
15
|
+
end
|
12
16
|
end
|
13
17
|
|
14
18
|
def sold_out?
|
data/lib/expedia_api/version.rb
CHANGED