Module: MongoODM::Document::AttributeMethods::Read::InstanceMethods

Defined in:
lib/mongo_odm/document/attribute_methods/read.rb

Instance Method Summary collapse

Instance Method Details

#[](attr_name) ⇒ Object



26
27
28
# File 'lib/mongo_odm/document/attribute_methods/read.rb', line 26

def [](attr_name)
  read_attribute[attr_name]
end

#read_attribute(attr_name) ⇒ Object



22
23
24
# File 'lib/mongo_odm/document/attribute_methods/read.rb', line 22

def read_attribute(attr_name)
  @attributes[attr_name]
end