Class: CukeParser::CukeModel::CukeSuite
- Inherits:
-
Object
- Object
- CukeParser::CukeModel::CukeSuite
- Defined in:
- lib/cuke_model/suite.rb
Instance Attribute Summary collapse
-
#branch_build_tag ⇒ Object
readonly
this will store all the elements for a specific feature.
-
#branch_number ⇒ Object
readonly
this will store all the elements for a specific feature.
-
#browser ⇒ Object
readonly
this will store all the elements for a specific feature.
-
#converted_duration ⇒ Object
this will store all the elements for a specific feature.
-
#date ⇒ Object
this will store all the elements for a specific feature.
-
#duration ⇒ Object
this will store all the elements for a specific feature.
-
#features ⇒ Object
this will store all the elements for a specific feature.
-
#os ⇒ Object
readonly
this will store all the elements for a specific feature.
-
#runstamp ⇒ Object
readonly
this will store all the elements for a specific feature.
-
#status ⇒ Object
this will store all the elements for a specific feature.
-
#time ⇒ Object
this will store all the elements for a specific feature.
-
#url ⇒ Object
readonly
this will store all the elements for a specific feature.
Instance Method Summary collapse
- #getFullName ⇒ Object
-
#initialize(date, time, runstamp, branch_build_tag, branch_number, os, url, browser) ⇒ CukeSuite
constructor
A new instance of CukeSuite.
- #to_csv ⇒ Object
- #to_csv_pretty ⇒ Object
Constructor Details
#initialize(date, time, runstamp, branch_build_tag, branch_number, os, url, browser) ⇒ CukeSuite
Returns a new instance of CukeSuite.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/cuke_model/suite.rb', line 7 def initialize(date, time, runstamp, branch_build_tag, branch_number, os, url, browser) @date = date @time = time @runstamp = runstamp @duration = 0 @converted_duration = 0 @features = [] @browser = browser @os = os @branch_number = branch_number @branch_build_tag = branch_build_tag @url = url @status = "" end |
Instance Attribute Details
#branch_build_tag ⇒ Object (readonly)
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def branch_build_tag @branch_build_tag end |
#branch_number ⇒ Object (readonly)
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def branch_number @branch_number end |
#browser ⇒ Object (readonly)
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def browser @browser end |
#converted_duration ⇒ Object
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def converted_duration @converted_duration end |
#date ⇒ Object
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def date @date end |
#duration ⇒ Object
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def duration @duration end |
#features ⇒ Object
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def features @features end |
#os ⇒ Object (readonly)
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def os @os end |
#runstamp ⇒ Object (readonly)
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def runstamp @runstamp end |
#status ⇒ Object
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def status @status end |
#time ⇒ Object
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def time @time end |
#url ⇒ Object (readonly)
this will store all the elements for a specific feature
5 6 7 |
# File 'lib/cuke_model/suite.rb', line 5 def url @url end |
Instance Method Details
#getFullName ⇒ Object
31 32 33 34 35 |
# File 'lib/cuke_model/suite.rb', line 31 def getFullName #returns keyword + name fullName = @date + "_" + @time return fullName end |
#to_csv ⇒ Object
22 23 24 25 |
# File 'lib/cuke_model/suite.rb', line 22 def to_csv #prints pretty csv format "#@date,#@time,#@duration,#@converted_duration,#@browser,#@os,#@branch_number,#@branch_build_tag,#@url,#@status" end |
#to_csv_pretty ⇒ Object
27 28 29 |
# File 'lib/cuke_model/suite.rb', line 27 def to_csv_pretty return self.to_csv end |