class Quickbooks::Service::Department

Public Instance Methods

delete(department) click to toggle source
# File lib/quickbooks/service/department.rb, line 10
def delete(department)
  department.active = false
  update(department, :sparse => false)
end
update(entity, options = {}) click to toggle source
Calls superclass method Quickbooks::Service::ServiceCrud#update
# File lib/quickbooks/service/department.rb, line 5
def update(entity, options = {})
  raise Quickbooks::InvalidModelException.new('Department sparse update is not supported by Intuit at this time') if options[:sparse] && options[:sparse] == true
  super(entity, options)
end

Private Instance Methods

model() click to toggle source
# File lib/quickbooks/service/department.rb, line 17
def model
  Quickbooks::Model::Department
end