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.



38
39
40
# File 'lib/elasticsearch/model/indexing.rb', line 38

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

Instance Attribute Details

#settingsObject

Returns the value of attribute settings.



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

def settings
  @settings
end

Instance Method Details

#as_json(options = {}) ⇒ Object



46
47
48
# File 'lib/elasticsearch/model/indexing.rb', line 46

def as_json(options={})
  to_hash
end

#to_hashObject



42
43
44
# File 'lib/elasticsearch/model/indexing.rb', line 42

def to_hash
  @settings
end