Module: Elasticsearch::Model::Naming::ClassMethods
- Included in:
 - Proxy::ClassMethodsProxy
 
- Defined in:
 - lib/elasticsearch/model/naming.rb
 
Instance Method Summary collapse
- 
  
    
      #index_name(name = nil, &block)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Get or set the name of the index.
 - 
  
    
      #index_name=(name)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Set the index name.
 
Instance Method Details
#index_name(name = nil, &block) ⇒ Object
Get or set the name of the index
      43 44 45 46 47 48 49 50 51 52 53  | 
    
      # File 'lib/elasticsearch/model/naming.rb', line 43 def index_name name=nil, &block if name || block_given? return (@index_name = name || block) end if @index_name.respond_to?(:call) @index_name.call else @index_name || implicit(:index_name) end end  | 
  
#index_name=(name) ⇒ Object
Set the index name
      58 59 60  | 
    
      # File 'lib/elasticsearch/model/naming.rb', line 58 def index_name=(name) @index_name = name end  |