class ChgkRating::Models::Rating

Public Class Methods

new(release_id_or_hash, params = {}) click to toggle source
Calls superclass method ChgkRating::Models::Base::new
# File lib/chgk_rating/models/rating.rb, line 7
def initialize(release_id_or_hash, params = {})
  @team_id = extract_id_from params[:team]
  super
end

Private Instance Methods

api_path() click to toggle source
# File lib/chgk_rating/models/rating.rb, line 14
def api_path
  "teams/#{@team_id}/rating"
end