Module: Materialist::Materializer::Internals::ClassMethods

Defined in:
lib/materialist/materializer/internals/class_methods.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#__materialist_dsl_mapping_stackObject (readonly)

Returns the value of attribute __materialist_dsl_mapping_stack.



5
6
7
# File 'lib/materialist/materializer/internals/class_methods.rb', line 5

def __materialist_dsl_mapping_stack
  @__materialist_dsl_mapping_stack
end

#__materialist_optionsObject (readonly)

Returns the value of attribute __materialist_options.



5
6
7
# File 'lib/materialist/materializer/internals/class_methods.rb', line 5

def __materialist_options
  @__materialist_options
end

Instance Method Details

#_sidekiq_optionsObject



12
13
14
# File 'lib/materialist/materializer/internals/class_methods.rb', line 12

def _sidekiq_options
  __materialist_options[:sidekiq_options] || {}
end

#perform(url, action) ⇒ Object



7
8
9
10
# File 'lib/materialist/materializer/internals/class_methods.rb', line 7

def perform(url, action)
  materializer = Materializer.new(url, self)
  action == :delete ? materializer.destroy : materializer.upsert
end