Class: OpenHAB::Core::Types::PlayPauseType

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

Overview

Implements PLAY and PAUSE commands and states.

Constant Summary collapse

PLAY =

Play Command/Playing State

PAUSE =

Pause Command/Paused State

Instance Method Summary collapse

Methods included from Type

#==, #eql?

Instance Method Details

#paused?true, false Also known as: pause?

Check if self == PAUSE

Returns:

  • (true, false)


# File 'lib/openhab/core/types/play_pause_type.rb', line 25

#playing?true, false Also known as: play?

Check if self == PLAY

Returns:

  • (true, false)


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