Class: ChgkRating::Models::Recap

Inherits:
Base show all
Defined in:
lib/chgk_rating/models/recap.rb

Constant Summary

Constants included from Connection

Connection::BASE_URL

Instance Attribute Summary

Attributes inherited from Base

#lazy

Instance Method Summary collapse

Methods inherited from Base

attribute_mapping, #eager_load!, inherited, no_eager_loading!, no_lazy_support!, #to_h

Methods included from Request

#get

Methods included from Connection

#connection

Methods inherited from ChgkObject

#build_model, #extract_id_from

Constructor Details

#initialize(season_id_or_hash, params = {}) ⇒ Recap

Returns a new instance of Recap.



9
10
11
12
# File 'lib/chgk_rating/models/recap.rb', line 9

def initialize(season_id_or_hash, params = {})
  @team_id = extract_id_from params[:team]
  super
end