Class: XeroGateway::Organisation

Inherits:
BaseRecord show all
Defined in:
lib/xero_gateway/organisation.rb

Instance Method Summary collapse

Methods inherited from BaseRecord

#==, #array_from_xml, attribute, attributes, #from_xml, from_xml, #from_xml_attributes, #initialize, #to_xml, #to_xml_attributes, xml_element

Constructor Details

This class inherits a constructor from XeroGateway::BaseRecord

Instance Method Details

#add_address(address_params) ⇒ Object



26
27
28
29
# File 'lib/xero_gateway/organisation.rb', line 26

def add_address(address_params)
  self.addresses ||= []
  self.addresses << Address.new(address_params)
end