Class: Indices::Dsl::Mappings

Inherits:
Api
  • Object
show all
Defined in:
lib/indices/dsl/mappings.rb

Instance Method Summary collapse

Methods inherited from Api

#initialize, #method_missing, #to_h

Constructor Details

This class inherits a constructor from Indices::Dsl::Api

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Indices::Dsl::Api

Instance Method Details

#properties(*names) ⇒ Object



5
6
7
8
9
10
# File 'lib/indices/dsl/mappings.rb', line 5

def properties(*names)
  @parent[:properties] ||= {}
  names.each do |name|
    @parent[:properties][name] = Indices.configuration.mappings[name]
  end
end