Class: RiotKit::Models::Riot::Player::Vision
- Inherits:
-
Object
- Object
- RiotKit::Models::Riot::Player::Vision
- Defined in:
- lib/riot_kit/models/riot/player/vision.rb
Instance Attribute Summary collapse
-
#detector_wards_placed ⇒ Object
readonly
Returns the value of attribute detector_wards_placed.
-
#stealth_wards_placed ⇒ Object
readonly
Returns the value of attribute stealth_wards_placed.
-
#vision_score ⇒ Object
readonly
Returns the value of attribute vision_score.
-
#vision_wards_bought ⇒ Object
readonly
Returns the value of attribute vision_wards_bought.
-
#wards_killed ⇒ Object
readonly
Returns the value of attribute wards_killed.
-
#wards_placed ⇒ Object
readonly
Returns the value of attribute wards_placed.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Vision
constructor
A new instance of Vision.
- #to_h ⇒ Object
Constructor Details
#initialize(**attrs) ⇒ Vision
Returns a new instance of Vision.
11 12 13 14 15 16 17 18 |
# File 'lib/riot_kit/models/riot/player/vision.rb', line 11 def initialize(**attrs) @vision_score = attrs[:vision_score] @wards_placed = attrs[:wards_placed] @wards_killed = attrs[:wards_killed] @detector_wards_placed = attrs[:detector_wards_placed] @vision_wards_bought = attrs[:vision_wards_bought] @stealth_wards_placed = attrs[:stealth_wards_placed] end |
Instance Attribute Details
#detector_wards_placed ⇒ Object (readonly)
Returns the value of attribute detector_wards_placed.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/vision.rb', line 8 def detector_wards_placed @detector_wards_placed end |
#stealth_wards_placed ⇒ Object (readonly)
Returns the value of attribute stealth_wards_placed.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/vision.rb', line 8 def stealth_wards_placed @stealth_wards_placed end |
#vision_score ⇒ Object (readonly)
Returns the value of attribute vision_score.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/vision.rb', line 8 def vision_score @vision_score end |
#vision_wards_bought ⇒ Object (readonly)
Returns the value of attribute vision_wards_bought.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/vision.rb', line 8 def vision_wards_bought @vision_wards_bought end |
#wards_killed ⇒ Object (readonly)
Returns the value of attribute wards_killed.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/vision.rb', line 8 def wards_killed @wards_killed end |
#wards_placed ⇒ Object (readonly)
Returns the value of attribute wards_placed.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/vision.rb', line 8 def wards_placed @wards_placed end |
Instance Method Details
#to_h ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/riot_kit/models/riot/player/vision.rb', line 20 def to_h { vision_score: vision_score, wards_placed: wards_placed, wards_killed: wards_killed, detector_wards_placed: detector_wards_placed, vision_wards_bought: vision_wards_bought, stealth_wards_placed: stealth_wards_placed } end |