Class: Isomorfeus::Puppetmaster::Select::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/isomorfeus/puppetmaster/node/select.rb

Instance Method Summary collapse

Instance Method Details

#selectObject



6
7
8
# File 'lib/isomorfeus/puppetmaster/node/select.rb', line 6

def select
  @driver.select(self)
end

#selected?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/isomorfeus/puppetmaster/node/select.rb', line 10

def selected?
  !!self[:selected]
end

#unselectObject



14
15
16
# File 'lib/isomorfeus/puppetmaster/node/select.rb', line 14

def unselect
  @driver.unselect(self)
end