ean3 0.0.4 → 0.0.5
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.
- data/ean3-0.0.3.gem +0 -0
- data/ean3-0.0.4.gem +0 -0
- data/ean3.gemspec +1 -1
- data/lib/ean3/hotels.rb +71 -5
- metadata +4 -2
data/ean3-0.0.3.gem
ADDED
Binary file
|
data/ean3-0.0.4.gem
ADDED
Binary file
|
data/ean3.gemspec
CHANGED
data/lib/ean3/hotels.rb
CHANGED
@@ -23,38 +23,104 @@ module Ean3
|
|
23
23
|
return_error_or_body(response, response.body)
|
24
24
|
end
|
25
25
|
|
26
|
+
# Location Geo Functions
|
27
|
+
#
|
28
|
+
#
|
26
29
|
def getGeoLocation
|
27
|
-
response = connection.get
|
28
|
-
|
30
|
+
response = connection.get do |req|
|
31
|
+
req.url "geoSearch", options
|
32
|
+
end
|
33
|
+
return_error_or_body(response, response.body)
|
29
34
|
end
|
30
35
|
|
36
|
+
# Request Hotel Infomation
|
37
|
+
#
|
38
|
+
#
|
31
39
|
def getInformation
|
32
|
-
response = conncetion.get
|
33
|
-
|
40
|
+
response = conncetion.get do |req|
|
41
|
+
req.url "info", options
|
42
|
+
end
|
43
|
+
return_error_or_body(response, response.body)
|
34
44
|
end
|
35
45
|
|
46
|
+
# Request Hotel Rooms
|
47
|
+
#
|
48
|
+
#
|
36
49
|
def getAvaliabillity
|
50
|
+
response = conncetion.get do |req|
|
51
|
+
req.url "avail", options
|
52
|
+
end
|
53
|
+
return_error_or_body(response, response.body)
|
37
54
|
end
|
38
55
|
|
56
|
+
# Request Rate Rules
|
57
|
+
#
|
58
|
+
#
|
39
59
|
def getRules
|
60
|
+
response = conncetion.get do |req|
|
61
|
+
req.url "rules", options
|
62
|
+
end
|
63
|
+
return_error_or_body(response, response.body)
|
40
64
|
end
|
41
65
|
|
66
|
+
# Request Payment Types
|
67
|
+
#
|
68
|
+
#
|
42
69
|
def getPaymentInfo
|
70
|
+
response = conncetion.get do |req|
|
71
|
+
req.url "paymentInfo", options
|
72
|
+
end
|
73
|
+
return_error_or_body(response, response.body)
|
43
74
|
end
|
44
75
|
|
76
|
+
# Book a Reservation
|
77
|
+
#
|
78
|
+
#
|
45
79
|
def getReservation
|
46
|
-
|
80
|
+
response = conncetion.get do |req|
|
81
|
+
req.url "res", options
|
82
|
+
end
|
83
|
+
return_error_or_body(response, response.body)
|
84
|
+
end
|
47
85
|
|
86
|
+
# Request Alternate Properties
|
87
|
+
#
|
88
|
+
#
|
48
89
|
def getAlternateProperties
|
90
|
+
response = conncetion.get do |req|
|
91
|
+
req.url "altProps", options
|
92
|
+
end
|
93
|
+
return_error_or_body(response, response.body)
|
49
94
|
end
|
50
95
|
|
96
|
+
# Request Itinerary Record
|
97
|
+
#
|
98
|
+
#
|
51
99
|
def getItinerary
|
100
|
+
response = conncetion.get do |req|
|
101
|
+
req.url "itin", options
|
102
|
+
end
|
103
|
+
return_error_or_body(response, response.body)
|
52
104
|
end
|
53
105
|
|
106
|
+
# Cancel a Reservation
|
107
|
+
#
|
108
|
+
#
|
54
109
|
def getCancel
|
110
|
+
response = conncetion.get do |req|
|
111
|
+
req.url "cancel", options
|
112
|
+
end
|
113
|
+
return_error_or_body(response, response.body)
|
55
114
|
end
|
56
115
|
|
116
|
+
# Ping Request
|
117
|
+
#
|
118
|
+
#
|
57
119
|
def getPing
|
120
|
+
response = conncetion.get do |req|
|
121
|
+
req.url "ping", options
|
122
|
+
end
|
123
|
+
return_error_or_body(response, response.body)
|
58
124
|
end
|
59
125
|
end
|
60
126
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 5
|
9
|
+
version: 0.0.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Toshiaki Takahashi
|
@@ -92,6 +92,8 @@ files:
|
|
92
92
|
- Rakefile
|
93
93
|
- ean3-0.0.1.gem
|
94
94
|
- ean3-0.0.2.gem
|
95
|
+
- ean3-0.0.3.gem
|
96
|
+
- ean3-0.0.4.gem
|
95
97
|
- ean3.gemspec
|
96
98
|
- init.rb
|
97
99
|
- install.rb
|