Module: Ruconomic::API::TimeEntry

Extended by:
WebService
Defined in:
lib/ruconomic/api/time_entry.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 time entry. Parameters: project: The project of the new time entry. activity: The activity of the new time entry. employee: The employee of the new time entry. date: The date of the new time entry. text: The text of the new time entry. numberOfHours: The number of hours of the new time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


84
85
86
87
88
# File 'lib/ruconomic/api/time_entry.rb', line 84

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


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

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


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

def self.create_from_data_array
  response = invoke('TimeEntry_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 time entry. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


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

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

.find_approved_by_dateHash

Note:

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

Returns an array of handles for the TimeEntry entries with numbers in the given interval. Parameters: fromDate: The beginning of the interval. toDate: the end of the interval.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


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

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

.get_activityHash

Note:

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

Gets handle for the activity of a time entry. To set, use UpdateFromData or UpdateFromDataArray. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


154
155
156
157
158
# File 'lib/ruconomic/api/time_entry.rb', line 154

def self.get_activity
  response = invoke('TimeEntry_GetActivity') 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 time entries.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


95
96
97
98
99
# File 'lib/ruconomic/api/time_entry.rb', line 95

def self.get_all
  response = invoke('TimeEntry_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 time entries from date. fromDate is based on CET. includeCalculatedProperties is reserved for future usage and should be set to false for now.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


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

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

.get_approvedHash

Note:

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

Gets whether the time entry is approved. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


250
251
252
253
254
# File 'lib/ruconomic/api/time_entry.rb', line 250

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

.get_cost_priceHash

Note:

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

Gets the cost price of the time entry. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


238
239
240
241
242
# File 'lib/ruconomic/api/time_entry.rb', line 238

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


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

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

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


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

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

.get_dateHash

Note:

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

Gets the date of a time entry. To set, use UpdateFromData or UpdateFromDataArray. Parameters: ctimeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


178
179
180
181
182
# File 'lib/ruconomic/api/time_entry.rb', line 178

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

.get_employeeHash

Note:

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

Gets a handle for the employee of a time entry. To set, use UpdateFromData or UpdateFromDataArray. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


166
167
168
169
170
# File 'lib/ruconomic/api/time_entry.rb', line 166

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

.get_number_of_hoursHash

Note:

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

Gets the number of hours of a time entry. To set, use UpdateFromData or UpdateFromDataArray. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


214
215
216
217
218
# File 'lib/ruconomic/api/time_entry.rb', line 214

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

.get_projectHash

Note:

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

Gets handle for the project of a time entry. To set, use UpdateFromData or UpdateFromDataArray. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


142
143
144
145
146
# File 'lib/ruconomic/api/time_entry.rb', line 142

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

.get_sales_priceHash

Note:

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

Gets the sales price of the time entry. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


226
227
228
229
230
# File 'lib/ruconomic/api/time_entry.rb', line 226

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

.get_textHash

Note:

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

Gets the text of a time entry. Parameters: timeEntryHandle: Handle for the time entry.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


190
191
192
193
194
# File 'lib/ruconomic/api/time_entry.rb', line 190

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

.set_textHash

Note:

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

Sets the text of a time entry. Parameters: timeEntryHandle: Handle for the time entry. value: new text value.

Returns:

  • (Hash)

    The body content of the SOAP response.

See Also:


202
203
204
205
206
# File 'lib/ruconomic/api/time_entry.rb', line 202

def self.set_text
  response = invoke('TimeEntry_SetText') 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 time entry 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/time_entry.rb', line 48

def self.update_from_data
  response = invoke('TimeEntry_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 time entries 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/time_entry.rb', line 36

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