Module: Syobocal::DB::TitleRankHistory

Defined in:
lib/syobocal/db.rb

Class Method Summary collapse

Class Method Details

.get(params = {}) ⇒ Object



249
250
251
# File 'lib/syobocal/db.rb', line 249

def get(params = {})
  parse(open(url(params)))
end

.parse(xml) ⇒ Object



257
258
259
# File 'lib/syobocal/db.rb', line 257

def parse(xml)
  Syobocal::DB.parse_table_data(xml)
end

.url(params) ⇒ Object



253
254
255
# File 'lib/syobocal/db.rb', line 253

def url(params)
  'http://cal.syoboi.jp/db.php?Command=TitleRankHistory' + Syobocal::Util.format_params_amp(params)
end