Class: Elasticsearch::Model::Indexing::Settings
- Inherits:
 - 
      Object
      
        
- Object
 - Elasticsearch::Model::Indexing::Settings
 
 
- Defined in:
 - lib/elasticsearch/model/indexing.rb
 
Overview
Wraps the [index settings](www.elastic.co/guide/en/elasticsearch/reference/current/index.html)
Instance Attribute Summary collapse
- 
  
    
      #settings  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute settings.
 
Instance Method Summary collapse
- #as_json(options = {}) ⇒ Object
 - 
  
    
      #initialize(settings = {})  ⇒ Settings 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Settings.
 - #to_hash ⇒ Object
 
Constructor Details
#initialize(settings = {}) ⇒ Settings
Returns a new instance of Settings.
      36 37 38  | 
    
      # File 'lib/elasticsearch/model/indexing.rb', line 36 def initialize(settings={}) @settings = settings end  | 
  
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
      34 35 36  | 
    
      # File 'lib/elasticsearch/model/indexing.rb', line 34 def settings @settings end  | 
  
Instance Method Details
#as_json(options = {}) ⇒ Object
      44 45 46  | 
    
      # File 'lib/elasticsearch/model/indexing.rb', line 44 def as_json(={}) to_hash end  | 
  
#to_hash ⇒ Object
      40 41 42  | 
    
      # File 'lib/elasticsearch/model/indexing.rb', line 40 def to_hash @settings end  |