payoneer 0.1.12 → 0.1.13

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.
Files changed (2) hide show
  1. data/lib/payoneer/request.rb +6 -9
  2. metadata +1 -1
@@ -12,19 +12,16 @@ module Payoneer
12
12
  end
13
13
 
14
14
  private
15
+
15
16
  def api_url
16
- protocol = "https://"
17
- path = "/payouts/HttpApi/Api.aspx"
18
-
19
- [protocol, host, path].join
17
+ ['https://', host, '/payouts/HttpApi/Api.aspx'].join
20
18
  end
21
19
 
22
20
  def host
23
- sandbox = config.environment.eql?(:production) ? "" : "sandbox."
24
- subdomain = config.client_cert ? "apicert." : "api."
25
- root_domain = "payoneer.com"
21
+ sandbox = config.environment.eql?(:production) ? nil : 'sandbox'
22
+ sub_domain = config.client_cert ? 'apicert' : 'api'
26
23
 
27
- [subdomain, sandbox, root_domain].join()
24
+ [sub_domain, sandbox, 'payoneer.com'].compact.join('.')
28
25
  end
29
26
 
30
27
  def configure_security
@@ -35,4 +32,4 @@ module Payoneer
35
32
  Payoneer::Configuration
36
33
  end
37
34
  end
38
- end
35
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payoneer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: