Class: Fid

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/file.rb

Overview

represents files that are in the MogileFS database. This model is used for talking to the MogileFS database via ActiveRecord

Instance Method Summary collapse

Instance Method Details

#classnameString

If there is no fileclass then it is the default class

Returns:

  • (String)

    name of class file belongs to



13
14
15
16
17
18
19
# File 'lib/file.rb', line 13

def classname
  if fileclass
    fileclass.classname
  else
    return 'default'
  end
end