Class: Report
- Inherits:
-
Object
- Object
- Report
- Defined in:
- lib/report/report_parser.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#requests ⇒ Object
Returns the value of attribute requests.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
- #get_request_like(other) ⇒ Object
-
#initialize ⇒ Report
constructor
A new instance of Report.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/report/report_parser.rb', line 2 def name @name end |
#requests ⇒ Object
Returns the value of attribute requests.
3 4 5 |
# File 'lib/report/report_parser.rb', line 3 def requests @requests end |
#started_at ⇒ Object
Returns the value of attribute started_at.
4 5 6 |
# File 'lib/report/report_parser.rb', line 4 def started_at @started_at end |
#summary ⇒ Object
Returns the value of attribute summary.
5 6 7 |
# File 'lib/report/report_parser.rb', line 5 def summary @summary end |
Instance Method Details
#get_request_like(other) ⇒ Object
12 13 14 |
# File 'lib/report/report_parser.rb', line 12 def get_request_like(other) @requests.select { |r| r.controller == other.controller && r.action == other.action && r.verb==other.verb && r.format==other.format}.first end |
#to_s ⇒ Object
15 16 17 |
# File 'lib/report/report_parser.rb', line 15 def to_s @name end |