Method: Elasticsearch::Model::Adapter.from_class
- Defined in:
- lib/elasticsearch/model/adapter.rb
permalink .from_class(klass) ⇒ Object
Returns an adapter based on the Ruby class passed
44 45 46 |
# File 'lib/elasticsearch/model/adapter.rb', line 44 def from_class(klass) Adapter.new(klass) end |