ruby-booker 0.0.17 → 0.0.19
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/booker.rb +8 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7457cde43dc028bf90df25a64684631805221f66
|
|
4
|
+
data.tar.gz: a48fae502f63f1586234dae303ca2c65a12abf9d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa4c0de8a4da4325917cd9dca3ad7b87956e2f7be009b8eafd6c718ebfc1539ded8554ad17151a10bd1e945328f72851b7d085b37a07e308f5437d8cf7a309fd
|
|
7
|
+
data.tar.gz: 0565a7ab868ea7f6ef542fdfc0bc66cceccf8857390004dbbd6b2729f05ac1a3fef725d845ac45ccf7911d1b150233e0830645a871b4fffe18008f113bd9f7d0
|
data/lib/booker.rb
CHANGED
|
@@ -2,7 +2,7 @@ require 'httparty'
|
|
|
2
2
|
require 'booker/helpers'
|
|
3
3
|
|
|
4
4
|
module Booker
|
|
5
|
-
VERSION = "0.0.
|
|
5
|
+
VERSION = "0.0.19"
|
|
6
6
|
STAGING_BASE_HOST = "stable-app.secure-booker.com"
|
|
7
7
|
PRODUCTION_BASE_HOST = "app.secure-booker.com"
|
|
8
8
|
BASE_PATH = "/WebService4/json/customerService.svc"
|
|
@@ -202,6 +202,12 @@ module Booker
|
|
|
202
202
|
return_post_response url, defaults, options
|
|
203
203
|
end
|
|
204
204
|
|
|
205
|
+
#http://apidoc.booker.com/Method/Detail/124
|
|
206
|
+
def get_treatment treatment_id
|
|
207
|
+
url = build_url "/treatment/#{treatment_id}", "?access_token=#{@access_token}"
|
|
208
|
+
return_get_response url
|
|
209
|
+
end
|
|
210
|
+
|
|
205
211
|
#http://apidoc.booker.com/Method/Detail/125
|
|
206
212
|
def get_treatment_categories location_id
|
|
207
213
|
url = build_url "/treatment_categories",
|
|
@@ -292,7 +298,7 @@ module Booker
|
|
|
292
298
|
|
|
293
299
|
|
|
294
300
|
def base_url
|
|
295
|
-
"
|
|
301
|
+
"https://" + (@production ? Booker::PRODUCTION_BASE_HOST : Booker::STAGING_BASE_HOST) + Booker::BASE_PATH
|
|
296
302
|
end
|
|
297
303
|
|
|
298
304
|
def build_url path, query = ''
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-booker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jake Craige
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-04-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
- - ">="
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
|
-
description: Interact with
|
|
69
|
+
description: Interact with Booker API through Ruby
|
|
70
70
|
email: jake@poeticsystems.com
|
|
71
71
|
executables: []
|
|
72
72
|
extensions: []
|
|
@@ -99,5 +99,5 @@ rubyforge_project:
|
|
|
99
99
|
rubygems_version: 2.2.1
|
|
100
100
|
signing_key:
|
|
101
101
|
specification_version: 4
|
|
102
|
-
summary: Ruby
|
|
102
|
+
summary: Ruby interface to Booker API
|
|
103
103
|
test_files: []
|