class Smite::MatchSummary
Public Class Methods
new(data)
click to toggle source
Calls superclass method
Smite::Object::new
# File lib/smite/match_summary.rb, line 3 def initialize(data) super @data = DataTransform.transform_gods(@data) @data = DataTransform.transform_items(@data) @data = DataTransform.transform_match_summary(@data) end
Public Instance Methods
id()
click to toggle source
# File lib/smite/match_summary.rb, line 23 def id match end
inspect()
click to toggle source
# File lib/smite/match_summary.rb, line 27 def inspect "#<Smite::MatchSummary #{match} '#{queue}' (#{win_status})>" end
loss?()
click to toggle source
# File lib/smite/match_summary.rb, line 19 def loss? !win? end
to_full_match()
click to toggle source
# File lib/smite/match_summary.rb, line 10 def to_full_match Smite::Game.match(match) end
Also aliased as: full_match
win?()
click to toggle source
# File lib/smite/match_summary.rb, line 15 def win? win_status == 'Win' end