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

Defined in:
lib/materialist/materializer.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.



40
41
42
# File 'lib/materialist/materializer.rb', line 40

def __materialist_dsl_mapping_stack
  @__materialist_dsl_mapping_stack
end

#__materialist_optionsObject (readonly)

Returns the value of attribute __materialist_options.



40
41
42
# File 'lib/materialist/materializer.rb', line 40

def __materialist_options
  @__materialist_options
end

Instance Method Details

#perform(url, action) ⇒ Object



42
43
44
45
# File 'lib/materialist/materializer.rb', line 42

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