Class: Wemote::Collection::Switch

Inherits:
Array
  • Object
show all
Defined in:
lib/wemote/collection/switch.rb

Overview

This class provides an extension on the basic Array object, in order to facilitate group operations on a collection of Wemote::Switch instances.

Direct Known Subclasses

Insight

Instance Method Summary collapse

Instance Method Details

#off!Array

Calls Switch#off! on all containing elements and return the results in an array

Returns:

  • (Array)


24
# File 'lib/wemote/collection/switch.rb', line 24

make :off!

#off?Array

Calls Switch#off? on all containing elements and return the results in an array

Returns:

  • (Array)


25
# File 'lib/wemote/collection/switch.rb', line 25

make :off?

#on!Array

Calls Switch#on! on all containing elements and return the results in an array

Returns:

  • (Array)


26
# File 'lib/wemote/collection/switch.rb', line 26

make :on!

#on?Array

Calls Switch#on? on all containing elements and return the results in an array

Returns:

  • (Array)


27
# File 'lib/wemote/collection/switch.rb', line 27

make :on?

#toggle!Array

Calls Switch#toggle! on all containing elements and return the results in an array

Returns:

  • (Array)


23
# File 'lib/wemote/collection/switch.rb', line 23

make :toggle!