Class: ToiletTracker::Core::ToiletShiftResult
- Inherits:
-
Data
- Object
- Data
- ToiletTracker::Core::ToiletShiftResult
- Defined in:
- lib/toilet_tracker/core/parse_result.rb
Overview
Result for toilet shift settings
Instance Attribute Summary collapse
-
#effective_time ⇒ Object
readonly
Returns the value of attribute effective_time.
-
#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.
-
#shift ⇒ Object
readonly
Returns the value of attribute shift.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, status:, message:, shift: nil, effective_time: nil, metadata: [], error_details: nil) ⇒ ToiletShiftResult
constructor
A new instance of ToiletShiftResult.
Constructor Details
#initialize(type:, status:, message:, shift: nil, effective_time: nil, metadata: [], error_details: nil) ⇒ ToiletShiftResult
Returns a new instance of ToiletShiftResult.
26 27 28 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 26 def initialize(type:, status:, message:, shift: nil, effective_time: nil, metadata: [], error_details: nil) super end |
Instance Attribute Details
#effective_time ⇒ Object (readonly)
Returns the value of attribute effective_time
25 26 27 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 25 def effective_time @effective_time end |
#error_details ⇒ Object (readonly)
Returns the value of attribute error_details
25 26 27 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 25 def error_details @error_details end |
#message ⇒ Object (readonly)
Returns the value of attribute message
25 26 27 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 25 def @message end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
25 26 27 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 25 def @metadata end |
#shift ⇒ Object (readonly)
Returns the value of attribute shift
25 26 27 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 25 def shift @shift end |
#status ⇒ Object (readonly)
Returns the value of attribute status
25 26 27 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 25 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type
25 26 27 |
# File 'lib/toilet_tracker/core/parse_result.rb', line 25 def type @type end |