Module: UrlList
- Defined in:
- lib/weather_insight/url_list.rb
Constant Summary collapse
- STANDARD_URL =
'http://weather.goo.ne.jp/appearance_ratio/'
Class Method Summary collapse
Class Method Details
.month_url(spot, month) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/weather_insight/url_list.rb', line 4 def self.month_url spot, month if 1<=month && month<=12 month = sprintf("%02d",month) "#{STANDARD_URL}#{spot_url(spot)}#{month}.html" else raise ArgumentError, "invalid argument" end end |