Class: Smite::Competitor
Instance Attribute Summary
Attributes inherited from Object
#data
Instance Method Summary
collapse
Methods inherited from Object
#attributes, #method_missing
Constructor Details
Returns a new instance of Competitor.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Smite::Object
Instance Method Details
27
28
29
|
# File 'lib/smite/competitor.rb', line 27
def inspect
"#<Smite::Competitor '#{match}' '#{player_name}'>"
end
|
#loser? ⇒ Boolean
23
24
25
|
# File 'lib/smite/competitor.rb', line 23
def loser?
!winner?
end
|
#partied? ⇒ Boolean
15
16
17
|
# File 'lib/smite/competitor.rb', line 15
def partied?
party_id != 0
end
|
#to_player ⇒ Object
11
12
13
|
# File 'lib/smite/competitor.rb', line 11
def to_player
Smite::Game.player(player_id)
end
|
#winner? ⇒ Boolean
19
20
21
|
# File 'lib/smite/competitor.rb', line 19
def winner?
win_status == 'Winner'
end
|