class BackgroundJobs::Sidekiq::AttributeFactory
Public Class Methods
build(value)
click to toggle source
# File lib/background_jobs/strategies/sidekiq/job_attributes_adapter.rb, line 38 def self.build(value) return HashAttribute.new(value) if value.kind_of?(Hash) return ArrayAttribute.new(value) if value.kind_of?(Array) return Attribute.new(value) unless value.kind_of?(String) StringAttribute.new(value) end