Module: Mongo::Model::FileModel

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

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#attribute_get(name) ⇒ Object



6
7
8
# File 'lib/mongo/model/integration/file_model.rb', line 6

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

#attribute_set(name, value) ⇒ Object



10
11
12
# File 'lib/mongo/model/integration/file_model.rb', line 10

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