Sha256: 3e0e04584df405a1e6449be0dc61e500741000a20d71213f6aaac5d05309c42b
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
require 'xeroizer/record/application_helper' module Xeroizer class GenericApplication include Http extend Record::ApplicationHelper attr_reader :client, :xero_url, :logger, :rate_limit_sleep, :rate_limit_max_attempts extend Forwardable def_delegators :client, :access_token record :Account record :BrandingTheme record :Contact record :CreditNote record :Currency record :Invoice record :Item record :Journal record :ManualJournal record :Organisation record :Payment record :TaxRate record :TrackingCategory report :AgedPayablesByContact report :AgedReceivablesByContact report :BalanceSheet report :BankStatement report :BankSummary report :BudgetSummary report :ExecutiveSummary report :ProfitAndLoss report :TrialBalance public # Never used directly. Use sub-classes instead. # @see PublicApplication # @see PrivateApplication # @see PartnerApplication def initialize(consumer_key, consumer_secret, options = {}) @xero_url = options[:xero_url] || "https://api.xero.com/api.xro/2.0" @rate_limit_sleep = options[:rate_limit_sleep] || false @rate_limit_max_attempts = options[:rate_limit_max_attempts] || 5 @client = OAuth.new(consumer_key, consumer_secret, options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xeroizer-0.2.2 | lib/xeroizer/generic_application.rb |
xeroizer-0.2.1 | lib/xeroizer/generic_application.rb |