Class: Elasticsearch::Model::Indexing::Settings
- Inherits:
-
Object
- Object
- Elasticsearch::Model::Indexing::Settings
- Defined in:
- lib/elasticsearch/model/indexing.rb
Overview
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.
21 22 23 |
# File 'lib/elasticsearch/model/indexing.rb', line 21 def initialize(settings={}) @settings = settings end |
Instance Attribute Details
#settings ⇒ Object
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(={}) to_hash end |
#to_hash ⇒ Object
25 26 27 |
# File 'lib/elasticsearch/model/indexing.rb', line 25 def to_hash @settings end |