Module: Materialist::Materializer::Internals::ClassMethods
- Defined in:
- lib/materialist/materializer.rb
Instance Attribute Summary collapse
-
#__materialist_dsl_mapping_stack ⇒ Object
readonly
Returns the value of attribute __materialist_dsl_mapping_stack.
-
#__materialist_options ⇒ Object
readonly
Returns the value of attribute __materialist_options.
Instance Method Summary collapse
Instance Attribute Details
#__materialist_dsl_mapping_stack ⇒ Object (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_options ⇒ Object (readonly)
Returns the value of attribute __materialist_options.
40 41 42 |
# File 'lib/materialist/materializer.rb', line 40 def @__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 |