Class: XbmcSql::Path
- Inherits:
-
Base
- Object
- ActiveRecord::Base
- Base
- XbmcSql::Path
show all
- Defined in:
- app/models/xbmc_sql/path.rb
Instance Method Summary
collapse
Methods inherited from Base
alias_attributes, #attributes
Instance Method Details
#is_samba? ⇒ Boolean
21
22
23
|
# File 'app/models/xbmc_sql/path.rb', line 21
def is_samba?
path =~ /^smb/
end
|
#mapped_path ⇒ Object
25
26
27
28
29
30
31
|
# File 'app/models/xbmc_sql/path.rb', line 25
def mapped_path
self.path.tap do |original_path|
XbmcSql.path_mappings.each do |original, change|
original_path.gsub! original, change
end
end
end
|