Class: JmeterReports::SummaryLine
- Inherits:
-
Object
- Object
- JmeterReports::SummaryLine
- Defined in:
- lib/jmeter/reports/summary_line.rb
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
Returns the value of attribute elapsed.
-
#error ⇒ Object
Returns the value of attribute error.
-
#label ⇒ Object
Returns the value of attribute label.
-
#latency ⇒ Object
Returns the value of attribute latency.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#elapsed ⇒ Object
Returns the value of attribute elapsed.
16 17 18 |
# File 'lib/jmeter/reports/summary_line.rb', line 16 def elapsed @elapsed end |
#error ⇒ Object
Returns the value of attribute error.
16 17 18 |
# File 'lib/jmeter/reports/summary_line.rb', line 16 def error @error end |
#label ⇒ Object
Returns the value of attribute label.
16 17 18 |
# File 'lib/jmeter/reports/summary_line.rb', line 16 def label @label end |
#latency ⇒ Object
Returns the value of attribute latency.
16 17 18 |
# File 'lib/jmeter/reports/summary_line.rb', line 16 def latency @latency end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
16 17 18 |
# File 'lib/jmeter/reports/summary_line.rb', line 16 def @timestamp end |
Class Method Details
.parse(line) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/jmeter/reports/summary_line.rb', line 18 def self.parse(line) t,e,l,rc,rm,_,_,s,_,_,_,_,lt = CSV.parse_line(line) res = JmeterReports::SummaryLine.new res. = t.to_i res.elapsed = e.to_i res.label = l res.error = (s == "false" ? true : false) res.latency = lt.to_i return res end |
Instance Method Details
#error? ⇒ Boolean
29 30 31 |
# File 'lib/jmeter/reports/summary_line.rb', line 29 def error? self.error end |