Module: Materialist::Materializer::Internals::ClassMethods
- Defined in:
- lib/materialist/materializer/internals/class_methods.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.
5 6 7 |
# File 'lib/materialist/materializer/internals/class_methods.rb', line 5 def __materialist_dsl_mapping_stack @__materialist_dsl_mapping_stack end |
#__materialist_options ⇒ Object (readonly)
Returns the value of attribute __materialist_options.
5 6 7 |
# File 'lib/materialist/materializer/internals/class_methods.rb', line 5 def @__materialist_options end |
Instance Method Details
#_sidekiq_options ⇒ Object
12 13 14 |
# File 'lib/materialist/materializer/internals/class_methods.rb', line 12 def [: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 |