class ChgkRating::Collections::Recaps
Attributes
team[R]
Public Class Methods
new(params = {})
click to toggle source
Calls superclass method
ChgkRating::Collections::Base::new
# File lib/chgk_rating/collections/recaps.rb, line 6 def initialize(params = {}) @team = build_model params[:team] super end
Private Instance Methods
api_path()
click to toggle source
# File lib/chgk_rating/collections/recaps.rb, line 20 def api_path "teams/#{@team.id}/recaps" end
process(results, _params)
click to toggle source
# File lib/chgk_rating/collections/recaps.rb, line 14 def process(results, _params) results.each do |season,value| results[season] = ChgkRating::Models::Recap.new value, team: @team end end