pipeline_deals_api 0.1.10 → 0.1.11
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.
- checksums.yaml +4 -4
- data/lib/pipeline_deals_api/clients/deal.rb +6 -2
- data/lib/pipeline_deals_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bccf30912acfc2e09feb8a6c7b1a89d757e143192a53904b46740c0888c02a3
|
4
|
+
data.tar.gz: a38d2ca2f77a42528c3c3043f007d2057a15ad04ecd9aa25e051976b8c74460e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b387e6d8704e46e058adf5935b8ee1086fa130844af16fa02845833345344b9071719210bc679e695c2c66cac9ea1fb4c71cc4c004ecf50229ae2fe03787e1e
|
7
|
+
data.tar.gz: cc4713cdac48d5527a058940e5578ecc509795d00df8a26de6831ea94b8d8ae8e21faa3ee962925047db38f35a6201527c627487194866105ab566b8791c9ce7
|
@@ -3,15 +3,19 @@ module PipelineDealsApi
|
|
3
3
|
class Deal
|
4
4
|
include Helper
|
5
5
|
|
6
|
-
def initialize(http_client
|
6
|
+
def initialize(http_client:)
|
7
7
|
@http_client = http_client
|
8
8
|
end
|
9
9
|
|
10
10
|
def create_deal(body)
|
11
|
-
body = wrap_body(body)
|
11
|
+
body = wrap_body(body, :deal)
|
12
12
|
http_client.post('/deals.json', body)
|
13
13
|
end
|
14
14
|
|
15
|
+
def list_deals(body)
|
16
|
+
http_client.get('/deals.json', body)
|
17
|
+
end
|
18
|
+
|
15
19
|
private
|
16
20
|
|
17
21
|
attr_reader :http_client
|