module BusinessCentral::Object::ArgumentHelper

Public Instance Methods

company_id(argument) click to toggle source
# File lib/business_central/object/argument_helper.rb, line 13
def company_id(argument)
  return @client.default_company_id if !@client.default_company_id.nil?
  return @company_id if instance_variable_defined?('@company_id') && !@company_id.nil?
  return argument.fetch(:company_id, '') if !argument.nil?

  nil
end
id(argument) click to toggle source
# File lib/business_central/object/argument_helper.rb, line 6
def id(argument)
  return @id if instance_variable_defined?('@id') && !@id.nil?
  return argument.fetch(:id, '') if !argument.nil?

  nil
end