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.



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

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

Instance Attribute Details

#errorObject

Returns the value of attribute error.



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

def error
  @error
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#stateObject

Returns the value of attribute state.



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

def state
  @state
end

Instance Method Details

#save(_options = {}) ⇒ Object



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

def save(_options = {})
  1
end