Method: Invoiced::Payment#send
- Defined in:
- lib/invoiced/payment.rb
#send(params = {}, opts = {}) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/invoiced/payment.rb', line 10 def send(params={}, opts={}) response = @client.request(:post, "#{self.endpoint()}/emails", params, opts) # build email objects email = Email.new(@client) Util.build_objects(email, response[:body]) end |