Module: Afterparty::JobDescribers
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#execute_at ⇒ Object
Returns the value of attribute execute_at.
-
#method ⇒ Object
Returns the value of attribute method.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
- #description ⇒ Object (also: #inspect)
- #initialize(object, method, *args) ⇒ Object
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
4 5 6 |
# File 'lib/afterparty/jobs.rb', line 4 def args @args end |
#execute_at ⇒ Object
Returns the value of attribute execute_at.
4 5 6 |
# File 'lib/afterparty/jobs.rb', line 4 def execute_at @execute_at end |
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'lib/afterparty/jobs.rb', line 4 def method @method end |
#object ⇒ Object
Returns the value of attribute object.
4 5 6 |
# File 'lib/afterparty/jobs.rb', line 4 def object @object end |
Instance Method Details
#description ⇒ Object 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 |