Class: Caboose::MediaFile

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/caboose/media_file.rb

Instance Method Summary collapse

Instance Method Details

#api_hashObject



9
10
11
12
13
14
15
16
# File 'app/models/caboose/media_file.rb', line 9

def api_hash
  {
    :id => self.id,
    :name => self.name,      
    :description => self.description,
    :url => self.file.url      
  }
end