Module: Bishl::Url

Extended by:
Url
Included in:
Url
Defined in:
lib/url.rb

Instance Method Summary collapse

Instance Method Details

#baseObject



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