Class: Gurke::Step::StepResult

Inherits:
Object
  • Object
show all
Defined in:
lib/gurke/step.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(step, state, err = nil) ⇒ StepResult



87
88
89
# File 'lib/gurke/step.rb', line 87

def initialize(step, state, err = nil)
  @step, @state, @exception = step, state, err
end

Instance Attribute Details

#exceptionObject (readonly)

Returns the value of attribute exception.



85
86
87
# File 'lib/gurke/step.rb', line 85

def exception
  @exception
end

#stateObject (readonly)

Returns the value of attribute state.



85
86
87
# File 'lib/gurke/step.rb', line 85

def state
  @state
end

#stepObject (readonly)

Returns the value of attribute step.



85
86
87
# File 'lib/gurke/step.rb', line 85

def step
  @step
end

Instance Method Details

#failed?Boolean



97
98
99
# File 'lib/gurke/step.rb', line 97

def failed?
  @state == :failed
end

#pending?Boolean



101
102
103
# File 'lib/gurke/step.rb', line 101

def pending?
  @state == :pending
end

#skipped?Boolean



105
106
107
# File 'lib/gurke/step.rb', line 105

def skipped?
  @state == :skipped
end

#success?Boolean



109
110
111
# File 'lib/gurke/step.rb', line 109

def success?
  @state == :success
end