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.

Constant Summary collapse

NEXT =

Next Command

PREVIOUS =

Previous Command

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