Class: Elasticord::Base
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Elasticord::Base
- Extended by:
- ClassMethods
- Defined in:
- lib/elasticord/base.rb
Direct Known Subclasses
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Methods included from ClassMethods
create, delete_all, delete_by_query, get, index, index=, refresh_index, search, type
Instance Method Details
#assign_attributes(attributes) ⇒ Object
76 77 78 |
# File 'lib/elasticord/base.rb', line 76 def assign_attributes(attributes) attributes.each { |key, value| send("#{key}=", value) } end |