Class: Tochtli::Test::TestMessageHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/tochtli/test/test_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



176
177
178
# File 'lib/tochtli/test/test_case.rb', line 176

def error
  @error
end

#replyObject (readonly)

Returns the value of attribute reply.



176
177
178
# File 'lib/tochtli/test/test_case.rb', line 176

def reply
  @reply
end

#timeout_messageObject (readonly)

Returns the value of attribute timeout_message.



176
177
178
# File 'lib/tochtli/test/test_case.rb', line 176

def timeout_message
  @timeout_message
end

Instance Method Details

#call(reply) ⇒ Object



178
179
180
# File 'lib/tochtli/test/test_case.rb', line 178

def call(reply)
  @reply = reply
end

#on_error(error) ⇒ Object



186
187
188
# File 'lib/tochtli/test/test_case.rb', line 186

def on_error(error)
  @error = error
end

#on_timeout(original_message = nil) ⇒ Object



182
183
184
# File 'lib/tochtli/test/test_case.rb', line 182

def on_timeout(original_message=nil)
  @timeout_message = original_message
end