Class: CopyBot::Steps::BaseStep

Inherits:
Object
  • Object
show all
Defined in:
lib/copy_bot/steps/base_step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step_definition) ⇒ BaseStep

Returns a new instance of BaseStep.

Parameters:

  • step_definition (Hash)


11
12
13
14
15
# File 'lib/copy_bot/steps/base_step.rb', line 11

def initialize(step_definition)
  @step_definition = step_definition
  @message = nil
  @success = false
end

Instance Attribute Details

#messageObject (readonly)

Parameters:

  • (String)


5
6
7
# File 'lib/copy_bot/steps/base_step.rb', line 5

def message
  @message
end

#successFalseClass, TrueClass (readonly)

Returns:

  • (FalseClass, TrueClass)


8
9
10
# File 'lib/copy_bot/steps/base_step.rb', line 8

def success
  @success
end

Instance Method Details

#runObject

Raises:

  • (NotImplementedError)


18
19
20
# File 'lib/copy_bot/steps/base_step.rb', line 18

def run
  raise NotImplementedError
end