Class: WorkflowRb::Db::EventSubscription

Inherits:
WorkflowRecord
  • Object
show all
Defined in:
lib/workflow_rb/db/entities.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.abstract_class?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/workflow_rb/db/entities.rb', line 50

def self.abstract_class?
  false
end

Instance Method Details

#pack(sub) ⇒ Object



54
55
56
57
58
59
# File 'lib/workflow_rb/db/entities.rb', line 54

def pack(sub)
  self.workflow_id = sub.workflow_id
  self.step_id = sub.step_id
  self.event_name = sub.event_name
  self.event_key = sub.event_key
end

#unpackObject



61
62
63
64
65
66
67
68
69
# File 'lib/workflow_rb/db/entities.rb', line 61

def unpack
  result = WorkflowRb::EventSubscription.new
  result.id = self.id
  result.workflow_id = self.workflow_id
  result.step_id = self.step_id
  result.event_name = self.event_name
  result.event_key = self.event_key
  result
end