Class: Japic::Response::Ranking
- Defined in:
- lib/japic/response/ranking.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#body, #count, #initialize, #league, #status, #year
Constructor Details
This class inherits a constructor from Japic::Response::Base
Instance Method Details
#rank_of(n) ⇒ Object
8 9 10 11 12 |
# File 'lib/japic/response/ranking.rb', line 8 def rank_of(n) rank = table.fetch(n - 1) ::Japic::Rank.new(rank) end |
#table ⇒ Object
4 5 6 |
# File 'lib/japic/response/ranking.rb', line 4 def table body['tables'] end |