Class: ToiletTracker::Core::ToiletShiftResult

Inherits:
Data
  • Object
show all
Defined in:
lib/toilet_tracker/core/parse_result.rb

Overview

Result for toilet shift settings

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeObject (readonly)

Returns the value of attribute effective_time

Returns:

  • (Object)

    the current value of effective_time



25
26
27
# File 'lib/toilet_tracker/core/parse_result.rb', line 25

def effective_time
  @effective_time
end

#error_detailsObject (readonly)

Returns the value of attribute error_details

Returns:

  • (Object)

    the current value of error_details



25
26
27
# File 'lib/toilet_tracker/core/parse_result.rb', line 25

def error_details
  @error_details
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



25
26
27
# File 'lib/toilet_tracker/core/parse_result.rb', line 25

def message
  @message
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



25
26
27
# File 'lib/toilet_tracker/core/parse_result.rb', line 25

def 
  @metadata
end

#shiftObject (readonly)

Returns the value of attribute shift

Returns:

  • (Object)

    the current value of shift



25
26
27
# File 'lib/toilet_tracker/core/parse_result.rb', line 25

def shift
  @shift
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



25
26
27
# File 'lib/toilet_tracker/core/parse_result.rb', line 25

def status
  @status
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



25
26
27
# File 'lib/toilet_tracker/core/parse_result.rb', line 25

def type
  @type
end