Class: SpResource

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

Overview

This class describes a special resource on mini map.

Instance Method Summary (collapse)

Instance Method Details

- (String) img_file

Return the image file name which is created from symbol and prefix. File extension is added on erb of views.

Returns:

  • (String)


15
16
17
# File 'app/models/sp_resource.rb', line 15

def img_file
  return "resource_" + symbol.to_s
end