Module: Mongo::Model::FileModel

Defined in:
lib/mongo/model/file_model.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#attribute_get(name) ⇒ Object



4
5
6
# File 'lib/mongo/model/file_model.rb', line 4

def attribute_get name
  instance_variable_get :"@#{name}"
end

#attribute_set(name, value) ⇒ Object



8
9
10
# File 'lib/mongo/model/file_model.rb', line 8

def attribute_set name, value
  instance_variable_set :"@#{name}", value
end