Class: Lipwig::Senders::Postmark

Inherits:
Abstract
  • Object
show all
Defined in:
lib/lipwig/senders/postmark.rb

Instance Method Summary collapse

Methods inherited from Abstract

call, #initialize

Constructor Details

This class inherits a constructor from Lipwig::Senders::Abstract

Instance Method Details

#callObject



4
5
6
7
8
9
10
# File 'lib/lipwig/senders/postmark.rb', line 4

def call
  client.deliver_in_batches(messages).each do |response|
    puts "Delivery To:     #{Array(response[:to]).join(', ')}"
    puts "Delivery Status: #{response[:message]}"
    puts ""
  end
end