Class: Elastic::Core::QueryConfig
- Inherits:
-
Object
- Object
- Elastic::Core::QueryConfig
- Defined in:
- lib/elastic/core/query_config.rb
Instance Attribute Summary collapse
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#middleware_options ⇒ Object
Returns the value of attribute middleware_options.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#query ⇒ Object
Returns the value of attribute query.
-
#sort ⇒ Object
Returns the value of attribute sort.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#groups ⇒ Object
Returns the value of attribute groups.
3 4 5 |
# File 'lib/elastic/core/query_config.rb', line 3 def groups @groups end |
#limit ⇒ Object
Returns the value of attribute limit.
3 4 5 |
# File 'lib/elastic/core/query_config.rb', line 3 def limit @limit end |
#middleware_options ⇒ Object
Returns the value of attribute middleware_options.
3 4 5 |
# File 'lib/elastic/core/query_config.rb', line 3 def @middleware_options end |
#offset ⇒ Object
Returns the value of attribute offset.
3 4 5 |
# File 'lib/elastic/core/query_config.rb', line 3 def offset @offset end |
#query ⇒ Object
Returns the value of attribute query.
3 4 5 |
# File 'lib/elastic/core/query_config.rb', line 3 def query @query end |
#sort ⇒ Object
Returns the value of attribute sort.
3 4 5 |
# File 'lib/elastic/core/query_config.rb', line 3 def sort @sort end |
Class Method Details
Instance Method Details
#clone ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/elastic/core/query_config.rb', line 13 def clone self.class.new.tap do |clone| clone.query = @query.clone clone.groups = @groups.dup clone.limit = @limit clone.offset = @offset clone.sort = @sort.try(:clone) clone. = @middleware_options.dup end end |