Class: Launchr::Service::LaunchdJob
- Inherits:
-
Object
- Object
- Launchr::Service::LaunchdJob
- Defined in:
- lib/launchr/service.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#level ⇒ Object
Returns the value of attribute level.
-
#plist ⇒ Object
Returns the value of attribute plist.
-
#selected ⇒ Object
Returns the value of attribute selected.
Instance Method Summary collapse
-
#initialize(*args, &blk) ⇒ LaunchdJob
constructor
A new instance of LaunchdJob.
- #started? ⇒ Boolean
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
#label ⇒ Object
Returns the value of attribute label.
273 274 275 |
# File 'lib/launchr/service.rb', line 273 def label @label end |
#level ⇒ Object
Returns the value of attribute level.
274 275 276 |
# File 'lib/launchr/service.rb', line 274 def level @level end |
#plist ⇒ Object
Returns the value of attribute plist.
273 274 275 |
# File 'lib/launchr/service.rb', line 273 def plist @plist end |
#selected ⇒ Object
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
298 299 300 |
# File 'lib/launchr/service.rb', line 298 def started? !! level end |