# File 'lib/sakai-info/alias.rb', line 127defself.find_by_alias_id(id)properties={}DB.connect[:sakai_alias_property].where(:alias_id=>id).all.eachdo|row|properties[row[:name]]=row[:value].readendreturnpropertiesend
.get(id, property_name) ⇒ Object
117
118
119
120
121
122
123
124
125
# File 'lib/sakai-info/alias.rb', line 117defself.get(id,property_name)row=DB.connect[:sakai_alias_property].filter(:alias_id=>id,:name=>property_name).firstifrow.nil?nilelserow[:value].readendend