Class: CDP::Timeline::SummaryResponse
- Inherits:
-
Object
- Object
- CDP::Timeline::SummaryResponse
- Defined in:
- lib/cdp/timeline/summary_response.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#events_summary ⇒ Object
Returns the value of attribute events_summary.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize ⇒ SummaryResponse
constructor
A new instance of SummaryResponse.
- #success? ⇒ Boolean
Constructor Details
#initialize ⇒ SummaryResponse
Returns a new instance of SummaryResponse.
8 9 10 |
# File 'lib/cdp/timeline/summary_response.rb', line 8 def initialize @error = false end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
6 7 8 |
# File 'lib/cdp/timeline/summary_response.rb', line 6 def error @error end |
#events_summary ⇒ Object
Returns the value of attribute events_summary.
5 6 7 |
# File 'lib/cdp/timeline/summary_response.rb', line 5 def events_summary @events_summary end |
Instance Method Details
#error? ⇒ Boolean
16 17 18 |
# File 'lib/cdp/timeline/summary_response.rb', line 16 def error? @error end |
#success? ⇒ Boolean
12 13 14 |
# File 'lib/cdp/timeline/summary_response.rb', line 12 def success? !@error end |