Class: Job

Inherits:
Object
  • Object
show all
Defined in:
lib/perfecto-reporting/model/Job.rb

Overview

Job Defines a job which runs the test / group of tests

This can be used in order to locate specific job in reporting ui

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, number) ⇒ Job

initialize a new job instance



11
12
13
14
# File 'lib/perfecto-reporting/model/Job.rb', line 11

def initialize name, number
  @name = name
  @number = number
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/perfecto-reporting/model/Job.rb', line 8

def name
  @name
end

#numberObject

Returns the value of attribute number.



8
9
10
# File 'lib/perfecto-reporting/model/Job.rb', line 8

def number
  @number
end