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.



77
78
79
80
81
82
83
84
85
# File 'lib/tdriver/util/common/kernel.rb', line 77

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.



75
76
77
# File 'lib/tdriver/util/common/kernel.rb', line 75

def block
  @block
end

#expectedObject

Returns the value of attribute expected.



75
76
77
# File 'lib/tdriver/util/common/kernel.rb', line 75

def expected
  @expected
end

#messageObject

Returns the value of attribute message.



75
76
77
# File 'lib/tdriver/util/common/kernel.rb', line 75

def message
  @message
end

#sourceObject

Returns the value of attribute source.



75
76
77
# File 'lib/tdriver/util/common/kernel.rb', line 75

def source
  @source
end

#timeoutObject

Returns the value of attribute timeout.



75
76
77
# File 'lib/tdriver/util/common/kernel.rb', line 75

def timeout
  @timeout
end