class XeroGateway::Response
Attributes
bank_transaction[RW]
contact[RW]
contact_group[RW]
credit_note[RW]
date_time[RW]
errors[RW]
invoice[RW]
manual_journal[RW]
organisation[RW]
provider[RW]
report[RW]
request_params[RW]
request_xml[RW]
response_id[RW]
response_item[RW]
response_xml[RW]
status[RW]
Public Class Methods
new(params = {})
click to toggle source
# File lib/xero_gateway/response.rb, line 30 def initialize(params = {}) params.each do |k,v| self.send("#{k}=", v) end @errors ||= [] @response_item ||= [] end
Public Instance Methods
array_wrapped_response_item()
click to toggle source
# File lib/xero_gateway/response.rb, line 5 def array_wrapped_response_item Array(response_item) end
Also aliased as: contact_groups, invoices, credit_notes, bank_transactions, manual_journals, contacts, accounts, tracking_categories, tax_rates, items, currencies, payments
error()
click to toggle source
# File lib/xero_gateway/response.rb, line 44 def error errors.blank? ? nil : errors[0] end
success?()
click to toggle source
# File lib/xero_gateway/response.rb, line 40 def success? status == "OK" end