Module: Filebase::Model::Mixins::InstanceMethods

Defined in:
lib/filebase/model.rb

Instance Method Summary collapse

Instance Method Details

#==(object) ⇒ Object



192
193
194
# File 'lib/filebase/model.rb', line 192

def ==(object)
  key == object.key if object.is_a? Attributes
end

#deleteObject



191
# File 'lib/filebase/model.rb', line 191

def delete ; self.class.delete( self ) ; self ; end

#eql?(object) ⇒ Boolean

this seems iffy

Returns:

  • (Boolean)


195
# File 'lib/filebase/model.rb', line 195

def eql?(object) ; key == object.key ; end

#hashObject



196
# File 'lib/filebase/model.rb', line 196

def hash ; key.hash ; end

#saveObject



190
# File 'lib/filebase/model.rb', line 190

def save ; self.class.save( self ) ; end