Class: ToiletTracker::Core::PoopEventResult
- Inherits:
-
Data
- Object
- Data
- ToiletTracker::Core::PoopEventResult
- Defined in:
- lib/toilet_tracker/core/parse_result.rb
Overview
Result for poop events
Instance Attribute Summary collapse
-
#error_details ⇒ Object
readonly
Returns the value of attribute error_details.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#poop_time ⇒ Object
readonly
Returns the value of attribute poop_time.
-
#shift ⇒ Object
readonly
Returns the value of attribute shift.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, status:, message:, shift: nil, poop_time: nil, timezone: nil, metadata: [], error_details: nil) ⇒ PoopEventResult
constructor
A new instance of PoopEventResult.
Constructor Details
#initialize(type:, status:, message:, shift: nil, poop_time: nil, timezone: nil, metadata: [], error_details: nil) ⇒ PoopEventResult
Returns a new instance of PoopEventResult.
33 34 35 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 33 def initialize(type:, status:, message:, shift: nil, poop_time: nil, timezone: nil, metadata: [], error_details: nil) super end |
Instance Attribute Details
#error_details ⇒ Object (readonly)
Returns the value of attribute error_details
32 33 34 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 32 def error_details @error_details end |
#message ⇒ Object (readonly)
Returns the value of attribute message
32 33 34 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 32 def @message end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
32 33 34 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 32 def @metadata end |
#poop_time ⇒ Object (readonly)
Returns the value of attribute poop_time
32 33 34 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 32 def poop_time @poop_time end |
#shift ⇒ Object (readonly)
Returns the value of attribute shift
32 33 34 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 32 def shift @shift end |
#status ⇒ Object (readonly)
Returns the value of attribute status
32 33 34 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 32 def status @status end |
#timezone ⇒ Object (readonly)
Returns the value of attribute timezone
32 33 34 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 32 def timezone @timezone end |
#type ⇒ Object (readonly)
Returns the value of attribute type
32 33 34 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 32 def type @type end |