Class: Bizflow::DataModel::Process

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/bizflow/data_model/process.rb

Instance Method Summary collapse

Instance Method Details

#currentObject



22
23
24
# File 'lib/bizflow/data_model/process.rb', line 22

def current
  head.action
end

#headObject



18
19
20
# File 'lib/bizflow/data_model/process.rb', line 18

def head
  heads.first
end

#human_nameObject



14
15
16
# File 'lib/bizflow/data_model/process.rb', line 14

def human_name
  name.humanize
end