Class: LolApi::Event
- Inherits:
-
Object
- Object
- LolApi::Event
- Defined in:
- lib/lol_api/types/dtos/timeline.rb
Instance Attribute Summary collapse
-
#raw_event ⇒ Object
readonly
Returns the value of attribute raw_event.
Instance Method Summary collapse
- #assisting_participant_ids ⇒ Object
- #building_type ⇒ Object
- #creator_id ⇒ Object
- #event_type ⇒ Object
-
#initialize(raw_event) ⇒ Event
constructor
A new instance of Event.
- #item_after ⇒ Object
- #item_before ⇒ Object
- #item_id ⇒ Object
- #killer_id ⇒ Object
- #lane_type ⇒ Object
- #level_up_type ⇒ Object
- #monster_type ⇒ Object
- #participant_id ⇒ Object
- #position ⇒ Object
- #skill_slot ⇒ Object
- #team_id ⇒ Object
- #timestamp ⇒ Object
- #tower_type ⇒ Object
- #victim_id ⇒ Object
- #ward_type ⇒ Object
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_event ⇒ Object (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_ids ⇒ Object
55 56 57 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 55 def assisting_participant_ids raw_event['assistingParticipantId'] end |
#building_type ⇒ Object
59 60 61 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 59 def building_type raw_event['buildingType'] end |
#creator_id ⇒ Object
63 64 65 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 63 def creator_id raw_event['creatorId'] end |
#event_type ⇒ Object
67 68 69 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 67 def event_type raw_event['eventType'] end |
#item_after ⇒ Object
71 72 73 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 71 def item_after raw_event['itemAfter'] end |
#item_before ⇒ Object
75 76 77 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 75 def item_before raw_event['itemBefore'] end |
#item_id ⇒ Object
79 80 81 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 79 def item_id raw_event['itemId'] end |
#killer_id ⇒ Object
83 84 85 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 83 def killer_id raw_event['killerId'] end |
#lane_type ⇒ Object
87 88 89 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 87 def lane_type raw_event['laneType'] end |
#level_up_type ⇒ Object
91 92 93 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 91 def level_up_type raw_event['levelUpType'] end |
#monster_type ⇒ Object
95 96 97 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 95 def monster_type raw_event['monsterType'] end |
#participant_id ⇒ Object
99 100 101 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 99 def participant_id raw_event['participantId'] end |
#position ⇒ Object
103 104 105 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 103 def position raw_event['position'] end |
#skill_slot ⇒ Object
107 108 109 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 107 def skill_slot raw_event['skillSlot'] end |
#team_id ⇒ Object
111 112 113 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 111 def team_id raw_event['teamId'] end |
#timestamp ⇒ Object
115 116 117 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 115 def raw_event['timestamp'] end |
#tower_type ⇒ Object
119 120 121 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 119 def tower_type raw_event['towerType'] end |
#victim_id ⇒ Object
123 124 125 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 123 def victim_id raw_event['victimId'] end |
#ward_type ⇒ Object
127 128 129 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 127 def ward_type raw_event['wardType'] end |