Class: Dynflow::Testing::DummyStep

Inherits:
Object
  • Object
show all
Extended by:
Mimic
Defined in:
lib/dynflow/testing/dummy_step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mimic

mimic!

Constructor Details

#initializeDummyStep

Returns a new instance of DummyStep.



11
12
13
14
# File 'lib/dynflow/testing/dummy_step.rb', line 11

def initialize
  @state = :pending
  @id    = Testing.get_id
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



8
9
10
# File 'lib/dynflow/testing/dummy_step.rb', line 8

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id.



9
10
11
# File 'lib/dynflow/testing/dummy_step.rb', line 9

def id
  @id
end

#stateObject

Returns the value of attribute state.



8
9
10
# File 'lib/dynflow/testing/dummy_step.rb', line 8

def state
  @state
end

Instance Method Details

#save(_options = {}) ⇒ Object



16
17
18
# File 'lib/dynflow/testing/dummy_step.rb', line 16

def save(_options = {})
  1
end