class BackgroundJobs::Sidekiq::Attributes

Public Class Methods

new(array) click to toggle source
Calls superclass method
# File lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb, line 18
def initialize(array)
  super array.map {|attr| create_attribute(attr) }
end

Public Instance Methods

decode() click to toggle source
# File lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb, line 26
def decode
  map(&:decode)
end
encode() click to toggle source
# File lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb, line 22
def encode
  map(&:encode)
end

Private Instance Methods

create_attribute(attr) click to toggle source
# File lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb, line 32
def create_attribute(attr)
  AttributeFactory.build(attr)
end