Class: Mona::Task

Inherits:
Object
  • Object
show all
Includes:
Mixins
Defined in:
lib/mona/task.rb

Defined Under Namespace

Classes: Manager

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Mixins

included

Constructor Details

#initialize(name:, on:, block:) ⇒ Task

Returns a new instance of Task.



14
15
16
17
18
19
20
# File 'lib/mona/task.rb', line 14

def initialize(name:, on:, block:)
  @name = name.to_sym
  @on = on
  @block = block

  nil
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



4
5
6
# File 'lib/mona/task.rb', line 4

def block
  @block
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/mona/task.rb', line 4

def name
  @name
end

#onObject (readonly)

Returns the value of attribute on.



4
5
6
# File 'lib/mona/task.rb', line 4

def on
  @on
end