Class: FortniteApi::GlobalSolo
- Inherits:
-
Object
- Object
- FortniteApi::GlobalSolo
- Defined in:
- lib/fortnite_api/global_solo.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
- #custom ⇒ Object
-
#initialize(hash = {}) ⇒ GlobalSolo
constructor
A new instance of GlobalSolo.
- #kd ⇒ Object
- #kills ⇒ Object
- #kpg ⇒ Object
- #score ⇒ Object
- #scorepermatch ⇒ Object
- #top1 ⇒ Object
- #top10 ⇒ Object
- #top25 ⇒ Object
- #trnrating ⇒ Object
- #winratio ⇒ Object
Constructor Details
#initialize(hash = {}) ⇒ GlobalSolo
Returns a new instance of GlobalSolo.
5 6 7 |
# File 'lib/fortnite_api/global_solo.rb', line 5 def initialize(hash={}) @values = hash end |
Instance Attribute Details
#values ⇒ Object (readonly)
Returns the value of attribute values.
3 4 5 |
# File 'lib/fortnite_api/global_solo.rb', line 3 def values @values end |
Instance Method Details
#custom ⇒ Object
9 10 11 |
# File 'lib/fortnite_api/global_solo.rb', line 9 def custom self.values['p2'] end |
#kd ⇒ Object
45 46 47 |
# File 'lib/fortnite_api/global_solo.rb', line 45 def kd self.values['p2']['kd'] end |
#kills ⇒ Object
41 42 43 |
# File 'lib/fortnite_api/global_solo.rb', line 41 def kills self.values['p2']['kills'] end |
#kpg ⇒ Object
49 50 51 |
# File 'lib/fortnite_api/global_solo.rb', line 49 def kpg self.values['p2']['kpg'] end |
#score ⇒ Object
17 18 19 |
# File 'lib/fortnite_api/global_solo.rb', line 17 def score self.values['p2']['score'] end |
#scorepermatch ⇒ Object
21 22 23 |
# File 'lib/fortnite_api/global_solo.rb', line 21 def scorepermatch self.values['p2']['scorePerMatch'] end |
#top1 ⇒ Object
25 26 27 |
# File 'lib/fortnite_api/global_solo.rb', line 25 def top1 self.values['p2']['top1'] end |
#top10 ⇒ Object
29 30 31 |
# File 'lib/fortnite_api/global_solo.rb', line 29 def top10 self.values['p2']['top10'] end |
#top25 ⇒ Object
33 34 35 |
# File 'lib/fortnite_api/global_solo.rb', line 33 def top25 self.values['p2']['top25'] end |
#trnrating ⇒ Object
13 14 15 |
# File 'lib/fortnite_api/global_solo.rb', line 13 def self.values['p2']['trnRating'] end |
#winratio ⇒ Object
37 38 39 |
# File 'lib/fortnite_api/global_solo.rb', line 37 def winratio self.values['p2']['winRatio'] end |