Class: ChgkRating::Models::Rating

Inherits:
Base show all
Defined in:
lib/chgk_rating/models/rating.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

#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(release_id_or_hash, params = {}) ⇒ Rating

Returns a new instance of Rating.


7
8
9
10
# 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