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.



36
37
38
# File 'lib/elasticsearch/model/indexing.rb', line 36

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

Instance Attribute Details

#settingsObject

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(options={})
  to_hash
end

#to_hashObject



40
41
42
# File 'lib/elasticsearch/model/indexing.rb', line 40

def to_hash
  @settings
end