Class KizAPI::Ranking
In: lib/kizapi.rb
Parent: Array

Ranking is a class for fetching TOP 30 keywords in kizasi.jp ranking.

Methods

new  

Classes and Modules

Class KizAPI::Ranking::Keyword

Attributes

date  [R]  published date

Public Class methods

[Source]

     # File lib/kizapi.rb, line 113
113:     def initialize
114:       uri = URI.parse("http://kizasi.jp/kizapi.py?type=rank")
115:       rss = RSS::Parser.parse(uri.read)
116:       @date = rss.channel.lastBuildDate
117:       super(rss.items.map{|item| Keyword.new(item)})
118:     end

[Validate]