class CukeParser::CukeModel::CukeScenario

Attributes

converted_duration[RW]

this will store all the info for a scenario

duration[RW]

this will store all the info for a scenario

keyword[R]

this will store all the info for a scenario

name[R]

this will store all the info for a scenario

status[RW]

this will store all the info for a scenario

steps[RW]

this will store all the info for a scenario

Public Class Methods

new(keyword, name) click to toggle source
# File lib/cuke_model/scenario.rb, line 7
def initialize(keyword, name)
        @keyword = keyword
        @name = name
        @duration = 0
        @converted_duration = 0
        @steps = []
        @status = ""
end

Public Instance Methods

getFullName() click to toggle source
# File lib/cuke_model/scenario.rb, line 26
def getFullName
        #returns keyword + name
        fullName = @keyword + " " + @name
        return fullName
end
to_csv() click to toggle source
# File lib/cuke_model/scenario.rb, line 16
def to_csv
        #prints csv format
        "#@keyword,#@name,#@duration,#@converted_duration"
end
to_csv_pretty() click to toggle source
# File lib/cuke_model/scenario.rb, line 21
def to_csv_pretty
        #prints pretty csv format
        "\t\t #@keyword,#@name,#@duration,#@converted_duration"
end