Class: ToiletTracker::Core::PoopEventResult

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

Overview

Result for poop events

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute error_details

Returns:

  • (Object)

    the current value of error_details



32
33
34
# File 'lib/toilet_tracker/core/parse_result.rb', line 32

def error_details
  @error_details
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



32
33
34
# File 'lib/toilet_tracker/core/parse_result.rb', line 32

def message
  @message
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



32
33
34
# File 'lib/toilet_tracker/core/parse_result.rb', line 32

def 
  @metadata
end

#poop_timeObject (readonly)

Returns the value of attribute poop_time

Returns:

  • (Object)

    the current value of poop_time



32
33
34
# File 'lib/toilet_tracker/core/parse_result.rb', line 32

def poop_time
  @poop_time
end

#shiftObject (readonly)

Returns the value of attribute shift

Returns:

  • (Object)

    the current value of shift



32
33
34
# File 'lib/toilet_tracker/core/parse_result.rb', line 32

def shift
  @shift
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



32
33
34
# File 'lib/toilet_tracker/core/parse_result.rb', line 32

def status
  @status
end

#timezoneObject (readonly)

Returns the value of attribute timezone

Returns:

  • (Object)

    the current value of timezone



32
33
34
# File 'lib/toilet_tracker/core/parse_result.rb', line 32

def timezone
  @timezone
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



32
33
34
# File 'lib/toilet_tracker/core/parse_result.rb', line 32

def type
  @type
end