Class: Mutiny::Tests::Test
- Inherits:
-
Object
- Object
- Mutiny::Tests::Test
- Defined in:
- lib/mutiny/tests/test.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean (also: #==)
- #hash ⇒ Object
-
#initialize(location: nil, name:) ⇒ Test
constructor
A new instance of Test.
Constructor Details
#initialize(location: nil, name:) ⇒ Test
Returns a new instance of Test.
6 7 8 9 |
# File 'lib/mutiny/tests/test.rb', line 6 def initialize(location: nil, name:) @location = location @name = name end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/mutiny/tests/test.rb', line 4 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/mutiny/tests/test.rb', line 4 def name @name end |
Instance Method Details
#eql?(other) ⇒ Boolean Also known as: ==
11 12 13 |
# File 'lib/mutiny/tests/test.rb', line 11 def eql?(other) other.location == location && other.name == name end |
#hash ⇒ Object
17 18 19 |
# File 'lib/mutiny/tests/test.rb', line 17 def hash [location, name].hash end |