Class: SolidQueue::Configuration::Process

Inherits:
Struct
  • Object
show all
Defined in:
lib/solid_queue/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



13
14
15
# File 'lib/solid_queue/configuration.rb', line 13

def attributes
  @attributes
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



13
14
15
# File 'lib/solid_queue/configuration.rb', line 13

def kind
  @kind
end

Instance Method Details

#instantiateObject



14
15
16
# File 'lib/solid_queue/configuration.rb', line 14

def instantiate
  "SolidQueue::#{kind.to_s.titleize}".safe_constantize.new(**attributes)
end