Module: Rethinker::Document::DynamicAttributes

Extended by:
ActiveSupport::Concern
Defined in:
lib/rethinker/document/dynamic_attributes.rb

Instance Method Summary collapse

Instance Method Details

#[](name) ⇒ Object



4
5
6
# File 'lib/rethinker/document/dynamic_attributes.rb', line 4

def [](name)
  attributes[name.to_s]
end

#[]=(name, value) ⇒ Object



8
9
10
# File 'lib/rethinker/document/dynamic_attributes.rb', line 8

def []=(name, value)
  attributes[name.to_s] = value
end