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.



36
37
38
# File 'lib/materialist/materializer.rb', line 36

def __materialist_dsl_mapping_stack
  @__materialist_dsl_mapping_stack
end

#materialist_optionsObject (readonly)

Returns the value of attribute materialist_options.



36
37
38
# File 'lib/materialist/materializer.rb', line 36

def materialist_options
  @materialist_options
end

Instance Method Details

#perform(url, action) ⇒ Object



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

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