Class: Elasticord::Base

Inherits:
OpenStruct
  • Object
show all
Extended by:
ClassMethods
Defined in:
lib/elasticord/base.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from ClassMethods

client, index, index=, type

Instance Method Details

#assign_attributes(attributes) ⇒ Object



54
55
56
# File 'lib/elasticord/base.rb', line 54

def assign_attributes(attributes)
  attributes.each { |key, value| send("#{key}=", value) }
end