Class: TestMessage
- Inherits:
-
Object
- Object
- TestMessage
- Defined in:
- lib/testresult.rb
Overview
Captures a generic test message
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, message) ⇒ TestMessage
constructor
A new instance of TestMessage.
- #inspect ⇒ Object
Constructor Details
#initialize(name, message) ⇒ TestMessage
Returns a new instance of TestMessage
56 57 58 59 |
# File 'lib/testresult.rb', line 56 def initialize(name, ) @name = name @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message
54 55 56 |
# File 'lib/testresult.rb', line 54 def @message end |
#name ⇒ Object (readonly)
Returns the value of attribute name
54 55 56 |
# File 'lib/testresult.rb', line 54 def name @name end |
Instance Method Details
#inspect ⇒ Object
61 62 63 |
# File 'lib/testresult.rb', line 61 def inspect { :name => @name, :message => @message } end |