Class: BackgroundJobs::Sidekiq::JobAttributesAdapter
- Inherits:
-
Object
- Object
- BackgroundJobs::Sidekiq::JobAttributesAdapter
- Defined in:
- lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb
Instance Method Summary collapse
- #decode ⇒ Object
- #encode ⇒ Object
-
#initialize(attributes) ⇒ JobAttributesAdapter
constructor
A new instance of JobAttributesAdapter.
Constructor Details
#initialize(attributes) ⇒ JobAttributesAdapter
Returns a new instance of JobAttributesAdapter.
4 5 6 |
# File 'lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb', line 4 def initialize(attributes) @attributes = Attributes.new(attributes) end |
Instance Method Details
#decode ⇒ Object
12 13 14 |
# File 'lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb', line 12 def decode @attributes.decode end |
#encode ⇒ Object
8 9 10 |
# File 'lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb', line 8 def encode @attributes.encode end |