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

accounts()
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
bank_transactions()
contact_groups()
contacts()
credit_notes()
currencies()
error() click to toggle source
# File lib/xero_gateway/response.rb, line 44
def error
  errors.blank? ? nil : errors[0]
end
invoices()
items()
manual_journals()
payments()
success?() click to toggle source
# File lib/xero_gateway/response.rb, line 40
def success?
  status == "OK"
end
tax_rates()
tracking_categories()