Class: OpenHAB::Core::Types::NextPreviousType

Inherits:
Object
  • Object
show all
Includes:
Command
Defined in:
lib/openhab/core/types/next_previous_type.rb

Overview

Implements NEXT and PREVIOUS commands.

Instance Method Summary collapse

Methods included from Type

#==, #eql?

Instance Method Details

#next?true, false

Check if ‘self == NEXT`

Returns:

  • (true, false)


# File 'lib/openhab/core/types/next_previous_type.rb', line 19

#previous?true, false

Check if ‘self == PREVIOUS`

Returns:

  • (true, false)


# File 'lib/openhab/core/types/next_previous_type.rb', line 23