Class: MobyUtil::VerifyBlock

Inherits:
Object
  • Object
show all
Defined in:
lib/tdriver/util/common/kernel.rb

Overview

Helper class to store verify block for constant verifications for sut state

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(block, expected, message = nil, timeout = nil, source = "") ⇒ VerifyBlock

Returns a new instance of VerifyBlock.



84
85
86
87
88
89
90
91
92
# File 'lib/tdriver/util/common/kernel.rb', line 84

def initialize(block, expected, message = nil, timeout = nil, source = "")

  @block = block
  @expected = expected
  @message = message
  @timeout = timeout
  @source = source

end

Instance Attribute Details

#blockObject

Returns the value of attribute block.



82
83
84
# File 'lib/tdriver/util/common/kernel.rb', line 82

def block
  @block
end

#expectedObject

Returns the value of attribute expected.



82
83
84
# File 'lib/tdriver/util/common/kernel.rb', line 82

def expected
  @expected
end

#messageObject

Returns the value of attribute message.



82
83
84
# File 'lib/tdriver/util/common/kernel.rb', line 82

def message
  @message
end

#sourceObject

Returns the value of attribute source.



82
83
84
# File 'lib/tdriver/util/common/kernel.rb', line 82

def source
  @source
end

#timeoutObject

Returns the value of attribute timeout.



82
83
84
# File 'lib/tdriver/util/common/kernel.rb', line 82

def timeout
  @timeout
end