module Ruconomic::API::Unit

Public Class Methods

create() click to toggle source

Creates a new unit. Parameters: name: The name of the new unit.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_Create @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 84
def self.create
  response = invoke('Unit_Create') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
create_from_data() click to toggle source

Creates a new unit from a data object. Parameters: data: The data object that specifies the properties of the new unit.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_CreateFromData @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 12
def self.create_from_data
  response = invoke('Unit_CreateFromData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
create_from_data_array() click to toggle source

Creates new units from data objects. Parameters: dataArray: The array of data objects that specifies the properties of the new units.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_CreateFromDataArray @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 24
def self.create_from_data_array
  response = invoke('Unit_CreateFromDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
delete() click to toggle source

Deletes a unit. Parameters: unitHandle: Handle for the unit.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_Delete @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 143
def self.delete
  response = invoke('Unit_Delete') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
find_by_name() click to toggle source

Returns handles for units with a given name. Parameters: name: The name to search for.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_FindByName @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 107
def self.find_by_name
  response = invoke('Unit_FindByName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
find_by_number() click to toggle source

Returns a handle for the unit with a given number. Parameters: number: The number to search for.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_FindByNumber @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 119
def self.find_by_number
  response = invoke('Unit_FindByNumber') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
find_by_number_list() click to toggle source

Returns an array with handles for the untis corresponding to the given unit numbers. If a unit with a given number does not exist then the array contains nothing at that index. Parameters: numbers: The numbers to search for.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_FindByNumberList @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 131
def self.find_by_number_list
  response = invoke('Unit_FindByNumberList') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
get_all() click to toggle source

Returns handles for all units.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_GetAll @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 95
def self.get_all
  response = invoke('Unit_GetAll') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
get_data() click to toggle source

Returns an unit data object for a given unit. Parameters: entityHandle: A handle for the unit.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_GetData @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 60
def self.get_data
  response = invoke('Unit_GetData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
get_data_array() click to toggle source

Returns unit data objects for a given set of unit handles. Parameters: entityHandles: An array of the unit handles.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_GetDataArray @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 72
def self.get_data_array
  response = invoke('Unit_GetDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
get_name() click to toggle source

Gets the name of a unit. Parameters: unitHandle: Handle for the unit.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_GetName @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 167
def self.get_name
  response = invoke('Unit_GetName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
get_number() click to toggle source

Gets the number of a unit. Parameters: unitHandle: Handle for the unit.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_GetNumber @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 155
def self.get_number
  response = invoke('Unit_GetNumber') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
set_name() click to toggle source

Sets the name of a unit. Parameters: unitHandle: Handle for the unit. value: The new name of the unit.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_SetName @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 179
def self.set_name
  response = invoke('Unit_SetName') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
update_from_data() click to toggle source

Updates a unit from a data object. Parameters: data: The data object.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_UpdateFromData @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 48
def self.update_from_data
  response = invoke('Unit_UpdateFromData') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end
update_from_data_array() click to toggle source

Update units from data objects. Parameters: dataArray: The array of data objects.

@note TODO: This method was autogenerated from the WSDL - see github.com/coherify/ruconomic#contributing“ @see api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Unit_UpdateFromDataArray @return [Hash] The body content of the SOAP response.

# File lib/ruconomic/api/unit.rb, line 36
def self.update_from_data_array
  response = invoke('Unit_UpdateFromDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/coherify/ruconomic#contributing"
  end
end