Module: Ruconomic::API::Department

Extended by:
WebService
Defined in:
lib/ruconomic/api/department.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 department.


83
84
85
86
87
# File 'lib/ruconomic/api/department.rb', line 83

def self.create
  response = invoke('Department_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 department from a data object. Parameters: data: The data object that specifies the properties of the new department.


12
13
14
15
16
# File 'lib/ruconomic/api/department.rb', line 12

def self.create_from_data
  response = invoke('Department_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 departments from data objects. Parameters: dataArray: The array of data objects that specifies the properties of the new departments.


24
25
26
27
28
# File 'lib/ruconomic/api/department.rb', line 24

def self.create_from_data_array
  response = invoke('Department_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 department. Parameters: departmentHandle: Handle for the department.


153
154
155
156
157
# File 'lib/ruconomic/api/department.rb', line 153

def self.delete
  response = invoke('Department_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 a handle for the department with a given name. Parameters: name: The name to search for.


130
131
132
133
134
# File 'lib/ruconomic/api/department.rb', line 130

def self.find_by_name
  response = invoke('Department_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 department with the given number. Parameters: number: The number to search for.


106
107
108
109
110
# File 'lib/ruconomic/api/department.rb', line 106

def self.find_by_number
  response = invoke('Department_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 departments corresponding to the given numbers. If a department with a given number does not exist then the array contains nothing at that index. Parameters: numbers: The numbers to search for.


118
119
120
121
122
# File 'lib/ruconomic/api/department.rb', line 118

def self.find_by_number_list
  response = invoke('Department_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 departments.


94
95
96
97
98
# File 'lib/ruconomic/api/department.rb', line 94

def self.get_all
  response = invoke('Department_GetAll') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end

.get_all_updatedHash

Note:

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

Return handles for all departments from date. fromDate is based on CET. includeCalculatedProperties is reserved for future usage and should be set to false for now.


141
142
143
144
145
# File 'lib/ruconomic/api/department.rb', line 141

def self.get_all_updated
  response = invoke('Department_GetAllUpdated') 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 a department data object for a given department. Parameters: entityHandle: A handle for the department.


60
61
62
63
64
# File 'lib/ruconomic/api/department.rb', line 60

def self.get_data
  response = invoke('Department_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 department data objects for a given set of department handles. Parameters: entityHandles: An array of the department handles.


72
73
74
75
76
# File 'lib/ruconomic/api/department.rb', line 72

def self.get_data_array
  response = invoke('Department_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 department. Parameters: departmentHandle: Handle for the department.


177
178
179
180
181
# File 'lib/ruconomic/api/department.rb', line 177

def self.get_name
  response = invoke('Department_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 department. Parameters: departmentHandle: Handle for the department.


165
166
167
168
169
# File 'lib/ruconomic/api/department.rb', line 165

def self.get_number
  response = invoke('Department_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 department. Parameters: departmentHandle: Handle for the department. value: The new name for the department.


189
190
191
192
193
# File 'lib/ruconomic/api/department.rb', line 189

def self.set_name
  response = invoke('Department_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 department from a data object. Parameters: data: The data object.


48
49
50
51
52
# File 'lib/ruconomic/api/department.rb', line 48

def self.update_from_data
  response = invoke('Department_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 departments from data objects. Parameters: dataArray: The array of data objects.


36
37
38
39
40
# File 'lib/ruconomic/api/department.rb', line 36

def self.update_from_data_array
  response = invoke('Department_UpdateFromDataArray') do |message|
    raise "TODO: This method was autogenerated from the WSDL - see https://github.com/ta/ruconomic#contributing"
  end
end