Class: LolApi::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/lol_api/types/dtos/timeline.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_event) ⇒ Event

Returns a new instance of Event.



51
52
53
# File 'lib/lol_api/types/dtos/timeline.rb', line 51

def initialize(raw_event)
	@raw_event = raw_event
end

Instance Attribute Details

#raw_eventObject (readonly)

Returns the value of attribute raw_event.



49
50
51
# File 'lib/lol_api/types/dtos/timeline.rb', line 49

def raw_event
  @raw_event
end

Instance Method Details

#assisting_participant_idsObject



55
56
57
# File 'lib/lol_api/types/dtos/timeline.rb', line 55

def assisting_participant_ids
	raw_event['assistingParticipantId']
end

#building_typeObject



59
60
61
# File 'lib/lol_api/types/dtos/timeline.rb', line 59

def building_type
	raw_event['buildingType']
end

#creator_idObject



63
64
65
# File 'lib/lol_api/types/dtos/timeline.rb', line 63

def creator_id
	raw_event['creatorId']
end

#event_typeObject



67
68
69
# File 'lib/lol_api/types/dtos/timeline.rb', line 67

def event_type
	raw_event['eventType']
end

#item_afterObject



71
72
73
# File 'lib/lol_api/types/dtos/timeline.rb', line 71

def item_after
	raw_event['itemAfter']
end

#item_beforeObject



75
76
77
# File 'lib/lol_api/types/dtos/timeline.rb', line 75

def item_before
	raw_event['itemBefore']
end

#item_idObject



79
80
81
# File 'lib/lol_api/types/dtos/timeline.rb', line 79

def item_id
	raw_event['itemId']
end

#killer_idObject



83
84
85
# File 'lib/lol_api/types/dtos/timeline.rb', line 83

def killer_id
	raw_event['killerId']
end

#lane_typeObject



87
88
89
# File 'lib/lol_api/types/dtos/timeline.rb', line 87

def lane_type
	raw_event['laneType']
end

#level_up_typeObject



91
92
93
# File 'lib/lol_api/types/dtos/timeline.rb', line 91

def level_up_type
	raw_event['levelUpType']
end

#monster_typeObject



95
96
97
# File 'lib/lol_api/types/dtos/timeline.rb', line 95

def monster_type
	raw_event['monsterType']
end

#participant_idObject



99
100
101
# File 'lib/lol_api/types/dtos/timeline.rb', line 99

def participant_id
	raw_event['participantId']
end

#positionObject



103
104
105
# File 'lib/lol_api/types/dtos/timeline.rb', line 103

def position
	raw_event['position']
end

#skill_slotObject



107
108
109
# File 'lib/lol_api/types/dtos/timeline.rb', line 107

def skill_slot
	raw_event['skillSlot']
end

#team_idObject



111
112
113
# File 'lib/lol_api/types/dtos/timeline.rb', line 111

def team_id
	raw_event['teamId']
end

#timestampObject



115
116
117
# File 'lib/lol_api/types/dtos/timeline.rb', line 115

def timestamp
	raw_event['timestamp']
end

#tower_typeObject



119
120
121
# File 'lib/lol_api/types/dtos/timeline.rb', line 119

def tower_type
	raw_event['towerType']
end

#victim_idObject



123
124
125
# File 'lib/lol_api/types/dtos/timeline.rb', line 123

def victim_id
	raw_event['victimId']
end

#ward_typeObject



127
128
129
# File 'lib/lol_api/types/dtos/timeline.rb', line 127

def ward_type
	raw_event['wardType']
end