class Xeroizer::Record::OnlineInvoiceModel

Public Instance Methods

online_invoice(url, id) click to toggle source
# File lib/xeroizer/models/online_invoice.rb, line 14
def online_invoice(url, id)
  response_xml = @application.http_get(@application.client, "#{url}/#{CGI.escape(id)}/OnlineInvoice")
    
  response = parse_response(response_xml)

  response.response_items.first
end