Module: Ruconomic::API::Unit

Extended by:
WebService
Defined in:
lib/ruconomic/api/unit.rb

Class Method Summary collapse

Class Method Details

.createHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



84
85
86
87
88
# 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/ta/ruconomic#contributing"
  end
end

.create_from_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



12
13
14
15
16
# 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/ta/ruconomic#contributing"
  end
end

.create_from_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



24
25
26
27
28
# 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/ta/ruconomic#contributing"
  end
end

.deleteHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



143
144
145
146
147
# 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/ta/ruconomic#contributing"
  end
end

.find_by_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



107
108
109
110
111
# 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/ta/ruconomic#contributing"
  end
end

.find_by_numberHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



119
120
121
122
123
# 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/ta/ruconomic#contributing"
  end
end

.find_by_number_listHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



131
132
133
134
135
# 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/ta/ruconomic#contributing"
  end
end

.get_allHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

Returns handles for all units.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



95
96
97
98
99
# 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/ta/ruconomic#contributing"
  end
end

.get_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



60
61
62
63
64
# 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/ta/ruconomic#contributing"
  end
end

.get_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



72
73
74
75
76
# 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/ta/ruconomic#contributing"
  end
end

.get_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



167
168
169
170
171
# 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/ta/ruconomic#contributing"
  end
end

.get_numberHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



155
156
157
158
159
# 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/ta/ruconomic#contributing"
  end
end

.set_nameHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



179
180
181
182
183
# 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/ta/ruconomic#contributing"
  end
end

.update_from_dataHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



48
49
50
51
52
# 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/ta/ruconomic#contributing"
  end
end

.update_from_data_arrayHash

Note:

TODO: This method was autogenerated from the WSDL - see github.com/ta/ruconomic#contributing

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:



36
37
38
39
40
# 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/ta/ruconomic#contributing"
  end
end