Class: Indexers::Dsl::Mappings
Instance Method Summary collapse
Methods inherited from Api
#initialize, #method_missing, #to_h
Constructor Details
This class inherits a constructor from Indexers::Dsl::Api
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Indexers::Dsl::Api
Instance Method Details
#properties(*names) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/indexers/dsl/mappings.rb', line 5 def properties(*names) @parent[:properties] ||= {} names.each do |name| @parent[:properties][name] = Indexers.configuration.mappings[name] end end |