eep_client 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eep_client.rb +3 -2
- 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: b7b5a6fa352b55489b5a435871b6a66002d6eb0c
|
4
|
+
data.tar.gz: 6578f9e4ade789687b3eb36805388e2afd364581
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e4db355cf4b8d507db3e6e28f1b7df2a57b6c7902ffc48a7f9e708990ed2ca5a12b439404fc3218e390a266d64ba20533fa215785bb371d0d17d639df487d99
|
7
|
+
data.tar.gz: f921facff9366ca2594b58f3c7bd4d676f58bb7c6f64a53bffcf725e6347fe6bd6fa4f12415518004dff17942866bddba042377a81367401e0e7683df361c8fe
|
data/lib/eep_client.rb
CHANGED
@@ -11,7 +11,7 @@ CLEAR = 'clear'
|
|
11
11
|
OK = 'ok'
|
12
12
|
|
13
13
|
# urls
|
14
|
-
BASE_URL = 'https://
|
14
|
+
BASE_URL = 'https://eep.eventenrichment.com'
|
15
15
|
BASE_RESOURCE = '/api/v1/'
|
16
16
|
EVENT_RESOURCE = BASE_RESOURCE + EVENT
|
17
17
|
CLEAR_RESOURCE = BASE_RESOURCE + CLEAR
|
@@ -26,9 +26,10 @@ class EepClient
|
|
26
26
|
def initialize(api_token, options = { })
|
27
27
|
@api_token = api_token
|
28
28
|
@debug = options[:debug]
|
29
|
+
@base_url = options[:base_url] || BASE_URL
|
29
30
|
|
30
31
|
unless options[:no_send]
|
31
|
-
uri = URI(
|
32
|
+
uri = URI(@base_url)
|
32
33
|
@http = Net::HTTP.new(uri.host, uri.port)
|
33
34
|
@http.use_ssl = true
|
34
35
|
@http.verify_mode = OpenSSL::SSL::VERIFY_NONE if options[:no_verify]
|