Class: Elasticsearch::Model::Indexing::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/elasticsearch/model/indexing.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings = {}) ⇒ Settings

Returns a new instance of Settings.



21
22
23
# File 'lib/elasticsearch/model/indexing.rb', line 21

def initialize(settings={})
  @settings = settings
end

Instance Attribute Details

#settingsObject

Returns the value of attribute settings.



19
20
21
# File 'lib/elasticsearch/model/indexing.rb', line 19

def settings
  @settings
end

Instance Method Details

#as_json(options = {}) ⇒ Object



29
30
31
# File 'lib/elasticsearch/model/indexing.rb', line 29

def as_json(options={})
  to_hash
end

#to_hashObject



25
26
27
# File 'lib/elasticsearch/model/indexing.rb', line 25

def to_hash
  @settings
end