Class: Cukeregator::HtmlReader
- Inherits:
-
Object
- Object
- Cukeregator::HtmlReader
- Includes:
- Status
- Defined in:
- lib/cukeregator/html_reader.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#duration_inner_html ⇒ Object
readonly
Returns the value of attribute duration_inner_html.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#scenario_totals ⇒ Object
readonly
Returns the value of attribute scenario_totals.
-
#step_totals ⇒ Object
readonly
Returns the value of attribute step_totals.
-
#total_scenarios ⇒ Object
readonly
Returns the value of attribute total_scenarios.
-
#total_steps ⇒ Object
readonly
Returns the value of attribute total_steps.
-
#totals_inner_html ⇒ Object
readonly
Returns the value of attribute totals_inner_html.
Instance Method Summary collapse
-
#initialize(html, path) ⇒ HtmlReader
constructor
A new instance of HtmlReader.
Methods included from Status
Constructor Details
#initialize(html, path) ⇒ HtmlReader
Returns a new instance of HtmlReader.
10 11 12 13 14 15 16 |
# File 'lib/cukeregator/html_reader.rb', line 10 def initialize(html, path) @scripts = parse_scripts(Nokogiri::HTML(html)) @path = path @duration = parse_duration @total_scenarios, @scenario_totals = parse_totals(:scenario) @total_steps, @step_totals = parse_totals(:step) end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
8 9 10 |
# File 'lib/cukeregator/html_reader.rb', line 8 def duration @duration end |
#duration_inner_html ⇒ Object (readonly)
Returns the value of attribute duration_inner_html.
8 9 10 |
# File 'lib/cukeregator/html_reader.rb', line 8 def duration_inner_html @duration_inner_html end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
8 9 10 |
# File 'lib/cukeregator/html_reader.rb', line 8 def path @path end |
#scenario_totals ⇒ Object (readonly)
Returns the value of attribute scenario_totals.
7 8 9 |
# File 'lib/cukeregator/html_reader.rb', line 7 def scenario_totals @scenario_totals end |
#step_totals ⇒ Object (readonly)
Returns the value of attribute step_totals.
7 8 9 |
# File 'lib/cukeregator/html_reader.rb', line 7 def step_totals @step_totals end |
#total_scenarios ⇒ Object (readonly)
Returns the value of attribute total_scenarios.
7 8 9 |
# File 'lib/cukeregator/html_reader.rb', line 7 def total_scenarios @total_scenarios end |
#total_steps ⇒ Object (readonly)
Returns the value of attribute total_steps.
7 8 9 |
# File 'lib/cukeregator/html_reader.rb', line 7 def total_steps @total_steps end |
#totals_inner_html ⇒ Object (readonly)
Returns the value of attribute totals_inner_html.
7 8 9 |
# File 'lib/cukeregator/html_reader.rb', line 7 def totals_inner_html @totals_inner_html end |