Class: KillerQueenSceneScoring::Team
- Inherits:
-
Object
- Object
- KillerQueenSceneScoring::Team
- Defined in:
- lib/killer_queen_scene_scoring/team.rb
Instance Attribute Summary collapse
-
#final_rank ⇒ Object
readonly
Returns the value of attribute final_rank.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#points ⇒ Object
Returns the value of attribute points.
Instance Method Summary collapse
-
#initialize(challonge_obj) ⇒ Team
constructor
‘challonge_obj` is the Challonge data for this team.
Constructor Details
#initialize(challonge_obj) ⇒ Team
‘challonge_obj` is the Challonge data for this team.
10 11 12 13 14 15 |
# File 'lib/killer_queen_scene_scoring/team.rb', line 10 def initialize(challonge_obj) @id = challonge_obj[:id] @name = challonge_obj[:name] @final_rank = challonge_obj[:final_rank] @points = 0.0 end |
Instance Attribute Details
#final_rank ⇒ Object (readonly)
Returns the value of attribute final_rank.
6 7 8 |
# File 'lib/killer_queen_scene_scoring/team.rb', line 6 def final_rank @final_rank end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/killer_queen_scene_scoring/team.rb', line 6 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/killer_queen_scene_scoring/team.rb', line 6 def name @name end |
#points ⇒ Object
Returns the value of attribute points.
7 8 9 |
# File 'lib/killer_queen_scene_scoring/team.rb', line 7 def points @points end |