Class: SakaiInfo::SiteProperty
- Inherits:
-
Object
- Object
- SakaiInfo::SiteProperty
- Defined in:
- lib/sakai-info/site.rb
Class Method Summary collapse
- .find_by_site_id(site_id) ⇒ Object
- .find_site_ids_by_property(name, value) ⇒ Object
- .get(site_id, property_name) ⇒ Object
Class Method Details
.find_by_site_id(site_id) ⇒ Object
513 514 515 516 517 518 519 520 |
# File 'lib/sakai-info/site.rb', line 513 def self.find_by_site_id(site_id) properties = {} DB.connect[:sakai_site_property]. where(:site_id => site_id).all.each do |row| properties[row[:name]] = row[:value].read end return properties end |