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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0f1a20540605e75571502bbfda23623439e6c682fad8582b7b87a69a436b68b
4
- data.tar.gz: 3c3318e09b222a969c2df57a8d0b56a04957f5f95f4c40785f08da998d583650
3
+ metadata.gz: 1bccf30912acfc2e09feb8a6c7b1a89d757e143192a53904b46740c0888c02a3
4
+ data.tar.gz: a38d2ca2f77a42528c3c3043f007d2057a15ad04ecd9aa25e051976b8c74460e
5
5
  SHA512:
6
- metadata.gz: ce0ee7da2270872cef05b0e1f03aa5c351b6ca5d5e42c7297fd2af638774a6048afcb34474f45bdff3e8dc7d9062324208bcffa3f996c48f0bdfc534fd4b8f67
7
- data.tar.gz: 8c6c532cd8bca3b44d845da6e27e55054d6d19ee432a919e7b18e3259ef434a90d2f9677cf964ff5b5ccaeb375092075b741d48ae68253012e45f4753e7d2f87
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
@@ -1,3 +1,3 @@
1
1
  module PipelineDealsApi
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipeline_deals_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Sinner