Class: NBA::BoxScoreSimilarityStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreSimilarityStat
- Defined in:
- lib/nba/box_score_similarity_stat.rb
Overview
Represents a G League Alum box score similarity score
Instance Attribute Summary collapse
-
#first_person_id ⇒ Integer
Returns the first player ID.
-
#second_person_id ⇒ Integer
Returns the second player ID.
-
#second_person_name ⇒ String
Returns the second player name.
-
#similarity_score ⇒ Float
Returns the similarity score between the two players.
-
#team_id ⇒ Integer
Returns the team ID.
Instance Method Summary collapse
-
#first_person ⇒ Player?
Returns the first player object.
-
#second_person ⇒ Player?
Returns the second player object.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#first_person_id ⇒ Integer
Returns the first player ID
12 |
# File 'lib/nba/box_score_similarity_stat.rb', line 12 attribute :first_person_id, Shale::Type::Integer |
#second_person_id ⇒ Integer
Returns the second player ID
20 |
# File 'lib/nba/box_score_similarity_stat.rb', line 20 attribute :second_person_id, Shale::Type::Integer |
#second_person_name ⇒ String
Returns the second player name
28 |
# File 'lib/nba/box_score_similarity_stat.rb', line 28 attribute :second_person_name, Shale::Type::String |
#similarity_score ⇒ Float
Returns the similarity score between the two players
44 |
# File 'lib/nba/box_score_similarity_stat.rb', line 44 attribute :similarity_score, Shale::Type::Float |
#team_id ⇒ Integer
Returns the team ID
36 |
# File 'lib/nba/box_score_similarity_stat.rb', line 36 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#first_person ⇒ Player?
Returns the first player object
52 53 54 |
# File 'lib/nba/box_score_similarity_stat.rb', line 52 def first_person Players.find(first_person_id) end |