class SportsDataApi::Golf::Player
Public Instance Methods
course()
click to toggle source
# File lib/sports_data_api/golf/player.rb, line 4 def course @course ||= Course.new(player[:course]) if player[:course] end
rounds()
click to toggle source
# File lib/sports_data_api/golf/player.rb, line 14 def rounds @rounds ||= player.fetch(:rounds, []).map do |json| Round.new(json) end end
scores()
click to toggle source
# File lib/sports_data_api/golf/player.rb, line 8 def scores @scores ||= player.fetch(:scores, []).map do |json| Score.new(json) end end