Class: ScenarioLog
- Inherits:
-
Object
- Object
- ScenarioLog
- Defined in:
- lib/logs/scenario_log.rb
Instance Attribute Summary collapse
-
#endDate ⇒ Object
Returns the value of attribute endDate.
-
#execution_method ⇒ Object
Returns the value of attribute execution_method.
-
#executionLog ⇒ Object
Returns the value of attribute executionLog.
-
#featureId ⇒ Object
Returns the value of attribute featureId.
-
#featureName ⇒ Object
Returns the value of attribute featureName.
-
#host ⇒ Object
Returns the value of attribute host.
-
#outLineResult ⇒ Object
Returns the value of attribute outLineResult.
-
#result ⇒ Object
Returns the value of attribute result.
-
#scenarioId ⇒ Object
Returns the value of attribute scenarioId.
-
#scenarioName ⇒ Object
Returns the value of attribute scenarioName.
-
#startDate ⇒ Object
Returns the value of attribute startDate.
Instance Method Summary collapse
-
#initialize ⇒ ScenarioLog
constructor
A new instance of ScenarioLog.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize ⇒ ScenarioLog
Returns a new instance of ScenarioLog.
5 6 7 8 |
# File 'lib/logs/scenario_log.rb', line 5 def initialize @execution_method = "AUTOMATE" @outLineResult = [] end |
Instance Attribute Details
#endDate ⇒ Object
Returns the value of attribute endDate.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def endDate @endDate end |
#execution_method ⇒ Object
Returns the value of attribute execution_method.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def execution_method @execution_method end |
#executionLog ⇒ Object
Returns the value of attribute executionLog.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def executionLog @executionLog end |
#featureId ⇒ Object
Returns the value of attribute featureId.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def featureId @featureId end |
#featureName ⇒ Object
Returns the value of attribute featureName.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def featureName @featureName end |
#host ⇒ Object
Returns the value of attribute host.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def host @host end |
#outLineResult ⇒ Object
Returns the value of attribute outLineResult.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def outLineResult @outLineResult end |
#result ⇒ Object
Returns the value of attribute result.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def result @result end |
#scenarioId ⇒ Object
Returns the value of attribute scenarioId.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def scenarioId @scenarioId end |
#scenarioName ⇒ Object
Returns the value of attribute scenarioName.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def scenarioName @scenarioName end |
#startDate ⇒ Object
Returns the value of attribute startDate.
2 3 4 |
# File 'lib/logs/scenario_log.rb', line 2 def startDate @startDate end |
Instance Method Details
#to_json(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/logs/scenario_log.rb', line 10 def to_json(={}) {'feature_id' => @featureId, 'feature_name' => @featureName, 'execution_method' => @execution_method, 'result' => @result, 'start_date' => @startDate, 'end_date' => @endDate, 'execute_log' => @executionLog, 'scenario_id' => @scenarioId, 'host' => @host}.to_json end |