travis-ci
10 of 10 new or added lines in 3 files covered. (100.0%)
3163 of 3238 relevant lines covered (97.68%)
19.99 hits per line
1 |
module Exlibris |
1 only 2.2.2 ✔ |
2 |
module Primo |
1 only 2.2.2 ✔ |
3 |
module WebService |
1 only 2.2.2 ✔ |
4 |
module Client |
1 only 2.2.2 ✔ |
5 |
module SavonClient |
1 only 2.2.2 ✔ |
6 |
require 'savon'
|
1 only 2.2.2 ✔ |
7 |
|
|
8 |
def client |
1 only 2.2.2 ✔ |
9 |
#
|
|
10 |
# We're not using WSDL at the moment, since
|
|
11 |
# we don't want to make an extra HTTP call.
|
|
12 |
#
|
|
13 |
# @client ||= Savon.client(wsdl: wsdl)
|
|
|
@client ||= Savon.client(client_options) |
127 only 2.2.2 ✔ |
15 |
end
|
|
16 |
protected :client
|
1 only 2.2.2 ✔ |
17 |
|
|
|
def client_options |
1 only 2.2.2 ✔ |
19 |
{ |
|
|
proxy: proxy_url,
|
× |
21 |
endpoint: endpoint,
|
|
22 |
namespace: endpoint,
|
|
23 |
log: false, |
|
24 |
log_level: :warn |
|
|
}.delete_if { |k, v| v.blank? } |
762 only 2.2.2 ✔ |
26 |
end
|
|
|
private :client_options
|
1 only 2.2.2 ✔ |
28 |
end
|
|
29 |
end
|
|
30 |
end
|
|
31 |
end
|
|
32 |
end
|