Module: Afterparty::JobDescribers

Included in:
BasicJob, MailerJob
Defined in:
lib/afterparty/jobs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args.



4
5
6
# File 'lib/afterparty/jobs.rb', line 4

def args
  @args
end

#execute_atObject

Returns the value of attribute execute_at.



4
5
6
# File 'lib/afterparty/jobs.rb', line 4

def execute_at
  @execute_at
end

#methodObject

Returns the value of attribute method.



4
5
6
# File 'lib/afterparty/jobs.rb', line 4

def method
  @method
end

#objectObject

Returns the value of attribute object.



4
5
6
# File 'lib/afterparty/jobs.rb', line 4

def object
  @object
end

Instance Method Details

#descriptionObject Also known as: inspect



12
13
14
15
16
# File 'lib/afterparty/jobs.rb', line 12

def description
  desc = "Object: #{(@object || "nil")}."
  desc << "Method: #{(@method || "nil")}."
  desc << "Args: #{(@args || "nil")}"
end

#initialize(object, method, *args) ⇒ Object



6
7
8
9
10
# File 'lib/afterparty/jobs.rb', line 6

def initialize object, method, *args
  @object = object
  @method = method
  @args = args
end