Class: Landslider::WsTask

Inherits:
WsEntity show all
Defined in:
lib/landslider/entities/ws_task.rb

Instance Attribute Summary collapse

Attributes inherited from WsEntity

#entity_id, #entity_name, #entity_type

Instance Method Summary collapse

Instance Attribute Details

#archived_byInteger (readonly)

Returns:

  • (Integer)


7
8
9
# File 'lib/landslider/entities/ws_task.rb', line 7

def archived_by
  @archived_by
end

#assigned_to=(value) ⇒ Integer (writeonly)

The unique Landslide Id of the user who the task is assigned to

Returns:

  • (Integer)


19
20
21
# File 'lib/landslider/entities/ws_task.rb', line 19

def assigned_to=(value)
  @assigned_to = value
end

#associated_contact_idInteger (readonly)

Returns:

  • (Integer)


7
8
9
# File 'lib/landslider/entities/ws_task.rb', line 7

def associated_contact_id
  @associated_contact_id
end

#associated_entity_idInteger (readonly)

Returns:

  • (Integer)


7
8
9
# File 'lib/landslider/entities/ws_task.rb', line 7

def associated_entity_id
  @associated_entity_id
end

#completedBoolean (readonly)

Returns:

  • (Boolean)


26
27
28
# File 'lib/landslider/entities/ws_task.rb', line 26

def completed
  @completed
end

#created_byInteger (readonly)

Returns:

  • (Integer)


7
8
9
# File 'lib/landslider/entities/ws_task.rb', line 7

def created_by
  @created_by
end

#due_date=(value) ⇒ Date (writeonly)

The due date for the task

Returns:

  • (Date)


15
16
17
# File 'lib/landslider/entities/ws_task.rb', line 15

def due_date=(value)
  @due_date = value
end

#task_idInteger (readonly)

Returns:

  • (Integer)


7
8
9
# File 'lib/landslider/entities/ws_task.rb', line 7

def task_id
  @task_id
end

#task_name=(value) ⇒ String (writeonly)

The name of the task (required)

Returns:

  • (String)


11
12
13
# File 'lib/landslider/entities/ws_task.rb', line 11

def task_name=(value)
  @task_name = value
end

#task_type_id=(value) ⇒ Integer (writeonly)

The unique Landslide Id of the task type associated to the task

Returns:

  • (Integer)


23
24
25
# File 'lib/landslider/entities/ws_task.rb', line 23

def task_type_id=(value)
  @task_type_id = value
end

#updated_byInteger (readonly)

Returns:

  • (Integer)


7
8
9
# File 'lib/landslider/entities/ws_task.rb', line 7

def updated_by
  @updated_by
end

Instance Method Details

#soapify_for(msg) ⇒ Handsoap::XmlMason::Node

Parameters:

  • msg (Handsoap::XmlMason::Node)

Returns:

  • (Handsoap::XmlMason::Node)


30
31
32
33
34
35
36
37
38
# File 'lib/landslider/entities/ws_task.rb', line 30

def soapify_for(msg)
	super(msg)
	msg.add 'taskName', @task_name unless @task_name.nil?
	msg.add 'dueDate', @due_date unless @due_date.nil?
	msg.add 'assignedTo', @assigned_to.to_i unless @assigned_to.nil?
	msg.add 'taskTypeId', @task_type_id.to_i unless @task_type_id.nil?
	msg.add 'completed', @completed

end