Module: XeroGateway

Defined in:
lib/xero_gateway/tracking_category.rb,
lib/xero_gateway/http.rb,
lib/xero_gateway/dates.rb,
lib/xero_gateway/error.rb,
lib/xero_gateway/money.rb,
lib/xero_gateway/oauth.rb,
lib/xero_gateway/phone.rb,
lib/xero_gateway/account.rb,
lib/xero_gateway/address.rb,
lib/xero_gateway/contact.rb,
lib/xero_gateway/gateway.rb,
lib/xero_gateway/invoice.rb,
lib/xero_gateway/payment.rb,
lib/xero_gateway/currency.rb,
lib/xero_gateway/response.rb,
lib/xero_gateway/tax_rate.rb,
lib/xero_gateway/line_item.rb,
lib/xero_gateway/exceptions.rb,
lib/xero_gateway/credit_note.rb,
lib/xero_gateway/partner_app.rb,
lib/xero_gateway/private_app.rb,
lib/xero_gateway/journal_line.rb,
lib/xero_gateway/organisation.rb,
lib/xero_gateway/accounts_list.rb,
lib/xero_gateway/manual_journal.rb,
lib/xero_gateway/bank_transaction.rb,
lib/xero_gateway/xero_gateway_debug.rb,
lib/xero_gateway/line_item_calculations.rb

Overview

Tacking categories look like:

<TrackingCategory>

<Name>Region</Name>
<Status>ACTIVE</Status>
<TrackingCategoryID>e4a95e64-ebaa-401e-81cf-b625c7532d01</TrackingCategoryID>
<Options>
  <Option>
    <TrackingOptionID>ea7f7b6a-0d22-4d5c-9317-54542a10215e</TrackingOptionID>
    <Name>North</Name>
  </Option>
  <Option>
    <TrackingOptionID>8e8b8d7b-fa75-4b24-b429-8cbc1a21af23</TrackingOptionID>
    <Name>South</Name>
  </Option>
</Options>

</TrackingCategory>

Defined Under Namespace

Modules: Dates, Http, LineItemCalculations, Money Classes: Account, AccountsList, AccountsListNotLoadedError, Address, ApiException, BankTransaction, BankTransactionNotFoundError, Contact, CreditNote, CreditNoteNotFoundError, Currency, Error, Gateway, InvalidLineItemError, Invoice, InvoiceNotFoundError, JournalLine, LineItem, ManualJournal, ManualJournalNotFoundError, NoGatewayError, OAuth, ObjectNotFound, Organisation, PartnerApp, Payment, Phone, PrivateApp, Response, TaxRate, TrackingCategory, UnparseableResponse

Class Method Summary collapse

Class Method Details

.debug=(val) ⇒ Object



2
3
4
# File 'lib/xero_gateway/xero_gateway_debug.rb', line 2

def self.debug=(val)
  @debug = !!val
end

.debugging?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/xero_gateway/xero_gateway_debug.rb', line 5

def self.debugging?
  !!@debug
end

.log(message) ⇒ Object



9
10
11
12
13
# File 'lib/xero_gateway/xero_gateway_debug.rb', line 9

def self.log(message)
  if debugging?
    puts "XeroGateway" + " | " + message
  end
end