meissadia/hoopscrape

View on GitHub
lib/hoopscrape/Hash.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Extend Hash
class Hash
  # Get an NbaBoxscore
  # @param [Symbol] Format
  # @return [NbaBoxscore] Boxscore
  def boxscore(f_mat = nil)
    HoopScrape.boxscore(self[:boxscore_id], (f_mat || :to_hashes))
  end
end