Class: CarrierWave::Workers::Base
- Inherits:
-
Struct
- Object
- Struct
- CarrierWave::Workers::Base
- Defined in:
- lib/backgrounder/workers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#id ⇒ Object
Returns the value of attribute id.
-
#klass ⇒ Object
Returns the value of attribute klass.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
3 4 5 |
# File 'lib/backgrounder/workers/base.rb', line 3 def column @column end |
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/backgrounder/workers/base.rb', line 3 def id @id end |
#klass ⇒ Object
Returns the value of attribute klass
3 4 5 |
# File 'lib/backgrounder/workers/base.rb', line 3 def klass @klass end |
Class Method Details
.perform(*args) ⇒ Object
5 6 7 |
# File 'lib/backgrounder/workers/base.rb', line 5 def self.perform(*args) new(*args).perform end |
Instance Method Details
#perform(*args) ⇒ Object
9 10 11 12 13 |
# File 'lib/backgrounder/workers/base.rb', line 9 def perform(*args) set_args(*args) if args.present? constantized_resource.find id rescue *not_found_errors end |