Class: Bizflow::SemanticModel::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/bizflow/semantic_model/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ Task

Returns a new instance of Task.



8
9
10
11
12
13
# File 'lib/bizflow/semantic_model/task.rb', line 8

def initialize(name, options = {})
  @name = name
  @roles = options[:roles]
  @description = options[:description]
  @auto_assign = options[:auto_assign] || false
end

Instance Attribute Details

#auto_assignObject

Returns the value of attribute auto_assign.



6
7
8
# File 'lib/bizflow/semantic_model/task.rb', line 6

def auto_assign
  @auto_assign
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/bizflow/semantic_model/task.rb', line 6

def description
  @description
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/bizflow/semantic_model/task.rb', line 6

def name
  @name
end

#rolesObject

Returns the value of attribute roles.



6
7
8
# File 'lib/bizflow/semantic_model/task.rb', line 6

def roles
  @roles
end