Class: Mutiny::Tests::Test

Inherits:
Object
  • Object
show all
Defined in:
lib/mutiny/tests/test.rb

Direct Known Subclasses

Integration::RSpec::Test

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject (readonly)

Returns the value of attribute location.



4
5
6
# File 'lib/mutiny/tests/test.rb', line 4

def location
  @location
end

#nameObject (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: ==

Returns:

  • (Boolean)


11
12
13
# File 'lib/mutiny/tests/test.rb', line 11

def eql?(other)
  other.location == location && other.name == name
end

#hashObject



17
18
19
# File 'lib/mutiny/tests/test.rb', line 17

def hash
  [location, name].hash
end