Class: BackgroundJobs::Sidekiq::JobAttributesAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb

Instance Method Summary collapse

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

#decodeObject



12
13
14
# File 'lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb', line 12

def decode
  @attributes.decode
end

#encodeObject



8
9
10
# File 'lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb', line 8

def encode
  @attributes.encode
end