Module: Xero

Defined in:
lib/xero.rb,
lib/xero/client.rb,
lib/xero/version.rb,
lib/xero/connection.rb,
lib/xero/models/item.rb,
lib/xero/associations.rb,
lib/xero/models/phone.rb,
lib/xero/configuration.rb,
lib/xero/models/account.rb,
lib/xero/models/address.rb,
lib/xero/models/contact.rb,
lib/xero/models/invoice.rb,
lib/xero/models/payment.rb,
lib/xero/models/line_item.rb,
lib/xero/models/base_model.rb,
lib/xero/errors/bad_request.rb,
lib/xero/models/item_detail.rb,
lib/xero/associations/has_one.rb,
lib/xero/associations/has_many.rb,
lib/xero/associations/belongs_to.rb,
lib/xero/models/tracking_category.rb,
lib/xero/associations/has_many_proxy.rb,
lib/xero/clients/partner_application.rb,
lib/xero/clients/private_application.rb,
lib/xero/models/tracking_category_option.rb

Defined Under Namespace

Modules: Associations, Clients, Errors, Models Classes: Client, Configuration, Connection

Constant Summary collapse

VERSION =
'0.0.7'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



32
33
34
# File 'lib/xero.rb', line 32

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



35
36
37
38
39
# File 'lib/xero.rb', line 35

def self.configure
  self.configuration = Xero::Configuration.new
  yield(configuration)
  return self.configuration
end