Class: Eien::Task

Inherits:
Object
  • Object
show all
Includes:
Helpers::TimeHelpers
Defined in:
lib/eien/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::TimeHelpers

#summarize_age

Constructor Details

#initialize(context, namespace = nil) ⇒ Task

Returns a new instance of Task.



12
13
14
15
16
# File 'lib/eien/task.rb', line 12

def initialize(context, namespace = nil)
  @context = context
  @namespace = namespace
  @task_config = TaskConfig.new(context, namespace)
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



7
8
9
# File 'lib/eien/task.rb', line 7

def context
  @context
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



7
8
9
# File 'lib/eien/task.rb', line 7

def namespace
  @namespace
end

#task_configObject (readonly)

Returns the value of attribute task_config.



7
8
9
# File 'lib/eien/task.rb', line 7

def task_config
  @task_config
end

Instance Method Details

#run!Object



18
19
# File 'lib/eien/task.rb', line 18

def run!
end