class LolApi::HistoryMatch

Attributes

raw_match[R]

Public Class Methods

new(raw_match) click to toggle source
# File lib/lol_api/types/history_match.rb, line 7
def initialize(raw_match)
        @raw_match = raw_match
end

Public Instance Methods

map_id() click to toggle source
# File lib/lol_api/types/history_match.rb, line 11
def map_id
        raw_match['mapId']
end
match_creation() click to toggle source
# File lib/lol_api/types/history_match.rb, line 15
def match_creation
        raw_match['matchCreation']
end
match_duration() click to toggle source
# File lib/lol_api/types/history_match.rb, line 19
def match_duration
        raw_match['matchDuration']
end
match_id() click to toggle source
# File lib/lol_api/types/history_match.rb, line 23
def match_id
        raw_match['matchId']
end
match_version() click to toggle source
# File lib/lol_api/types/history_match.rb, line 27
def match_version
        raw_match['matchVersion']
end
participant_identities() click to toggle source
# File lib/lol_api/types/history_match.rb, line 31
def participant_identities
        if participants = raw_match['participantIdentities']
                participants.map do |participant|
                        ParticipantIdentity.new(participant) 
                end
        end
end
participants() click to toggle source
# File lib/lol_api/types/history_match.rb, line 39
def participants
        if participants = raw_match['participants']
                participants.map do |participant|
                        Participant.new(participant)
                end
        end
end
queue_type() click to toggle source
# File lib/lol_api/types/history_match.rb, line 47
def queue_type
        raw_match['queueType']
end
region() click to toggle source
# File lib/lol_api/types/history_match.rb, line 51
def region
        raw_match['region']
end
season() click to toggle source
# File lib/lol_api/types/history_match.rb, line 55
def season
        raw_match['season']
end