class SakaiInfo::AliasProperty
Public Class Methods
find_by_alias_id(id)
click to toggle source
# File lib/sakai-info/alias.rb, line 127 def self.find_by_alias_id(id) properties = {} DB.connect[:sakai_alias_property]. where(:alias_id => id).all.each do |row| properties[row[:name]] = row[:value].read end return properties end
get(id, property_name)
click to toggle source
# File lib/sakai-info/alias.rb, line 117 def self.get(id, property_name) row = DB.connect[:sakai_alias_property]. filter(:alias_id => id, :name => property_name).first if row.nil? nil else row[:value].read end end