gotransverse-tract-api 0.0.15 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/gotransverse-tract-api.rb +1 -0
- data/lib/gotransverse-tract-api/configuration.rb +4 -1
- data/lib/gotransverse-tract-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: 860b1fd71cd7d8462e76edaa35e3369ab945c413
|
4
|
+
data.tar.gz: 680abd3afbc782489d09a87ba25baa88956b8c59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f02dd4615585dad461b79c751061f09f8977f7ed4361ff5704a2aecce8007571eaa0880546bf2103ff174c8a8583945fc34cfaa34a26aad106ecbfa9b0043c66
|
7
|
+
data.tar.gz: 7a2998561f4a0a778ffabe877d9abc24c5c2cebc6c9d41d0daeda24b390909824ea2d37a1f49c3d52b7d4bc1a87b29a36f0d9e67d93ea8eb4a5fbc57d1ffbcda
|
data/README.md
CHANGED
@@ -40,6 +40,7 @@ From the application utilizing the gem, create a gotransverse_tract_api.rb file
|
|
40
40
|
GoTransverseTractApi.configure do |config|
|
41
41
|
config.user_id = <gotransverse_tract_user_id>
|
42
42
|
config.password = <gotransverse_tract_password>
|
43
|
+
config.tract_api_host = <gotransverse_tract_api_host>
|
43
44
|
end
|
44
45
|
```
|
45
46
|
|
@@ -83,6 +83,7 @@ module GoTransverseTractApi
|
|
83
83
|
# GoTransverseTractApi.configure do |config|
|
84
84
|
# config.user_id = <gotransverse_tract_user_id>
|
85
85
|
# config.password = <gotransverse_tract_password>
|
86
|
+
# config.tract_api_host = <gotransverse_tract_api_host>
|
86
87
|
# end
|
87
88
|
#
|
88
89
|
def self.configure
|
@@ -5,13 +5,16 @@ class Configuration
|
|
5
5
|
attr_accessor :basic_credentials
|
6
6
|
|
7
7
|
attr_accessor :cache_enabled
|
8
|
+
|
9
|
+
attr_accessor :tract_api_host
|
8
10
|
attr_accessor :tract_api_url
|
9
11
|
|
10
12
|
#
|
11
13
|
# initialize
|
12
14
|
#
|
13
15
|
def initialize
|
14
|
-
@
|
16
|
+
@tract_api_host ||= "https://my.tractbilling.com"
|
17
|
+
@tract_api_url = "#{@tract_api_host}/t/s/r/#{GoTransverseTractApi::TARGET_API_VERSION}"
|
15
18
|
set_basic_credentials
|
16
19
|
end
|
17
20
|
|