Class: RPerft::Client::TestResult

Inherits:
Object
  • Object
show all
Defined in:
lib/rperft/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description, repetitions, elapsed_seconds) ⇒ TestResult

Returns a new instance of TestResult.



15
16
17
18
19
20
# File 'lib/rperft/client.rb', line 15

def initialize(description, repetitions, elapsed_seconds)
  @description = description
  @repetitions = repetitions
  @elapsed_seconds = elapsed_seconds
  @tags = []
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



12
13
14
# File 'lib/rperft/client.rb', line 12

def description
  @description
end

#elapsed_secondsObject (readonly)

Returns the value of attribute elapsed_seconds.



12
13
14
# File 'lib/rperft/client.rb', line 12

def elapsed_seconds
  @elapsed_seconds
end

#repetitionsObject (readonly)

Returns the value of attribute repetitions.



12
13
14
# File 'lib/rperft/client.rb', line 12

def repetitions
  @repetitions
end

#tagsObject

Returns the value of attribute tags.



13
14
15
# File 'lib/rperft/client.rb', line 13

def tags
  @tags
end