Class: Launchr::Service::LaunchdJob

Inherits:
Object
  • Object
show all
Defined in:
lib/launchr/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &blk) ⇒ LaunchdJob

Returns a new instance of LaunchdJob.



302
303
304
305
306
307
308
309
310
311
312
# File 'lib/launchr/service.rb', line 302

def initialize *args, &blk
  case args.first
  when Hash
    opts = args.first
    opts.each do |key, value|
      self.send "#{key}=".to_sym, value
    end
  else
    raise "Unrecognized first argument: #{args.first.inspect}"
  end
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



273
274
275
# File 'lib/launchr/service.rb', line 273

def label
  @label
end

#levelObject

Returns the value of attribute level.



274
275
276
# File 'lib/launchr/service.rb', line 274

def level
  @level
end

#plistObject

Returns the value of attribute plist.



273
274
275
# File 'lib/launchr/service.rb', line 273

def plist
  @plist
end

#selectedObject

Returns the value of attribute selected.



273
274
275
# File 'lib/launchr/service.rb', line 273

def selected
  @selected
end

Instance Method Details

#started?Boolean

Returns:

  • (Boolean)


298
299
300
# File 'lib/launchr/service.rb', line 298

def started?
  !! level
end