Class: ToiletTracker::Core::TimezoneResult

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

Overview

Result for timezone settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, status:, message:, timezone: nil, shift_hours: nil, error_details: nil) ⇒ TimezoneResult

Returns a new instance of TimezoneResult.



40
41
42
# File 'lib/toilet_tracker/core/parse_result.rb', line 40

def initialize(type:, status:, message:, timezone: nil, shift_hours: nil, 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



39
40
41
# File 'lib/toilet_tracker/core/parse_result.rb', line 39

def error_details
  @error_details
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



39
40
41
# File 'lib/toilet_tracker/core/parse_result.rb', line 39

def message
  @message
end

#shift_hoursObject (readonly)

Returns the value of attribute shift_hours

Returns:

  • (Object)

    the current value of shift_hours



39
40
41
# File 'lib/toilet_tracker/core/parse_result.rb', line 39

def shift_hours
  @shift_hours
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



39
40
41
# File 'lib/toilet_tracker/core/parse_result.rb', line 39

def status
  @status
end

#timezoneObject (readonly)

Returns the value of attribute timezone

Returns:

  • (Object)

    the current value of timezone



39
40
41
# File 'lib/toilet_tracker/core/parse_result.rb', line 39

def timezone
  @timezone
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



39
40
41
# File 'lib/toilet_tracker/core/parse_result.rb', line 39

def type
  @type
end