Class: KillerQueenSceneScoring::Team

Inherits:
Object
  • Object
show all
Defined in:
lib/killer_queen_scene_scoring/team.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_rankObject (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

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/killer_queen_scene_scoring/team.rb', line 6

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/killer_queen_scene_scoring/team.rb', line 6

def name
  @name
end

#pointsObject

Returns the value of attribute points.



7
8
9
# File 'lib/killer_queen_scene_scoring/team.rb', line 7

def points
  @points
end