Module: Elasticsearch::Rails2::Client::InstanceMethods
- Defined in:
- lib/elasticsearch/rails2/client.rb
Instance Method Summary collapse
-
#client ⇒ Object
Get or set the client for a specific model instance.
-
#client=(client) ⇒ Object
Set the client for a specific model instance.
Instance Method Details
#client ⇒ Object
Get or set the client for a specific model instance
41 42 43 |
# File 'lib/elasticsearch/rails2/client.rb', line 41 def client @client ||= self.class.client end |
#client=(client) ⇒ Object
Set the client for a specific model instance
52 53 54 |
# File 'lib/elasticsearch/rails2/client.rb', line 52 def client=(client) @client = client end |