Module: Bishl::Url
Instance Method Summary collapse
Instance Method Details
#base ⇒ Object
7 8 9 |
# File 'lib/url.rb', line 7 def base "http://www.bishl.de" end |
#source(type) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/url.rb', line 11 def source(type) case type when "standings" then "#{base}/rss/standings.xml.php" when "schedule" then "#{base}//rss/schedule.xml.php" when "logo" then "#{base}//teams.php" end end |