rock_rms 6.1.0 → 6.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50017d792afc7f4304715fe75cb68760b009877d27ea8331eaab91286b88095a
4
- data.tar.gz: d1aa86a4092b9f6fa44bc2cf0ae85f8dda656432b4a901f7254f231b1b131995
3
+ metadata.gz: a5c736d626c3e10da442946c804afb51495b72dbd639eb1618ddf02f5014373b
4
+ data.tar.gz: 530f44eb1fc23905e1c73f8fb1520758211437cd9ef274edc6cec40022912fab
5
5
  SHA512:
6
- metadata.gz: 59a28cb036b889eff884c4c2f3fb777a2977929019098c9ebc344cf1505e3df2901771b49690a165336bcc2696d997e6891eb6d0aadb3f4132b0f204c4f229ff
7
- data.tar.gz: bfd0035a62b2a89211f7d50f1a312b70423814da3c29d551b50e7b1e74117445a7e36e150c1680fae2946d451c0f45bc9d783a4b8d9f7085fe5376e4a95b5dca
6
+ metadata.gz: b9310ac0e808dc7b62cc60cea9aa8137db0d5905caec35ae13d5cb0e1d59f15980f2a06ae63bbaa7c3b63e66181292769a711f8c5ebb9bc8c2bf465c7c6f4ac3
7
+ data.tar.gz: 5791b298548d265583c4258a09817f6e38f2720c86e6044fa77d23cbf9c097d81654fff0013922ad997e8764cdb262104c2b83c11562a75ab97aa1c2a64de0de
@@ -1,10 +1,21 @@
1
1
  module RockRMS
2
2
  class Client
3
3
  module Gateway
4
+ PATH = 'FinancialGateways'.freeze
5
+
4
6
  def list_gateways(options = {})
5
- Response::Gateway.format(
6
- get('FinancialGateways', options)
7
- )
7
+ res = get(gateway_path, options)
8
+ Response::Gateway.format(res)
9
+ end
10
+
11
+ def delete_gateway(id)
12
+ delete(gateway_path(id))
13
+ end
14
+
15
+ private
16
+
17
+ def gateway_path(id = nil)
18
+ id ? "#{PATH}/#{id}" : PATH
8
19
  end
9
20
  end
10
21
  end
@@ -1,3 +1,3 @@
1
1
  module RockRMS
2
- VERSION = '6.1.0'.freeze
2
+ VERSION = '6.2.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_rms
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taylor Brooks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-20 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday