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

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) [](attr_name)



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

def [](attr_name)
  read_attribute[attr_name]
end

- (Object) read_attribute(attr_name)



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

def read_attribute(attr_name)
  @attributes[attr_name]
end