Class: Pallets::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/pallets/task.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context = {}) ⇒ Task

Returns a new instance of Task.



5
6
7
# File 'lib/pallets/task.rb', line 5

def initialize(context = {})
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



3
4
5
# File 'lib/pallets/task.rb', line 3

def context
  @context
end

Instance Method Details

#runObject



9
10
# File 'lib/pallets/task.rb', line 9

def run
end