Skip to content

Commit 9475df5

Browse files
committed
Merge branch 'release/3.1.0'
* release/3.1.0: bump version add simulate param to batch endpoints
2 parents 6964375 + 94f01c3 commit 9475df5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/emailable/batch.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@ def initialize(id_or_emails, callback: nil)
1919
@status = nil
2020
end
2121

22-
def verify
22+
def verify(simulate: nil)
2323
return @id unless @id.nil?
2424

25-
opts = { emails: @emails.join(','), url: @callback }
25+
opts = { emails: @emails.join(','), url: @callback, simulate: simulate }
2626
response = @client.request(:post, 'batch', opts)
2727

2828
@id = response.body['id']
2929
end
3030

31-
def status
31+
def status(simulate: nil)
3232
return nil unless @id
3333
return @status if @status
3434

35-
response = @client.request(:get, 'batch', { id: @id })
35+
response = @client.request(:get, 'batch', { id: @id, simulate: simulate })
3636
bs = BatchStatus.new(response.body)
3737
@status = bs if bs.complete?
3838

lib/emailable/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Emailable
2-
VERSION = '3.0.2'
2+
VERSION = '3.1.0'
33
end

0 commit comments

Comments
 (0)