Class: LolApi::ParticipantFrame
- Inherits:
-
Object
- Object
- LolApi::ParticipantFrame
- Defined in:
- lib/lol_api/types/dtos/timeline.rb
Instance Attribute Summary collapse
-
#raw_frame ⇒ Object
readonly
Returns the value of attribute raw_frame.
Instance Method Summary collapse
- #current_gold ⇒ Object
-
#initialize(raw_frame) ⇒ ParticipantFrame
constructor
A new instance of ParticipantFrame.
- #jungle_minions_killed ⇒ Object
- #level ⇒ Object
- #minions_killed ⇒ Object
- #participant_id ⇒ Object
- #position ⇒ Object
- #total_gold ⇒ Object
- #xp ⇒ Object
Constructor Details
#initialize(raw_frame) ⇒ ParticipantFrame
Returns a new instance of ParticipantFrame.
135 136 137 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 135 def initialize(raw_frame) @raw_frame = raw_frame end |
Instance Attribute Details
#raw_frame ⇒ Object (readonly)
Returns the value of attribute raw_frame.
133 134 135 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 133 def raw_frame @raw_frame end |
Instance Method Details
#current_gold ⇒ Object
139 140 141 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 139 def current_gold @raw_frame['currentGold'] end |
#jungle_minions_killed ⇒ Object
143 144 145 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 143 def jungle_minions_killed @raw_frame['jungleMinionsKilled'] end |
#level ⇒ Object
147 148 149 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 147 def level @raw_frame['level'] end |
#minions_killed ⇒ Object
151 152 153 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 151 def minions_killed @raw_frame['minionsKilled'] end |
#participant_id ⇒ Object
155 156 157 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 155 def participant_id @raw_frame['participantId'] end |
#position ⇒ Object
159 160 161 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 159 def position Position.new(@raw_frame['position']) end |
#total_gold ⇒ Object
163 164 165 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 163 def total_gold @raw_frame['totalGold'] end |
#xp ⇒ Object
167 168 169 |
# File 'lib/lol_api/types/dtos/timeline.rb', line 167 def xp @raw_frame['xp'] end |