Class: HonStats::Classes::Modes
- Inherits:
-
Object
- Object
- HonStats::Classes::Modes
- Defined in:
- lib/honstats/game.rb
Overview
Consilidated modes
Instance Attribute Summary collapse
-
#all_pick ⇒ Object
readonly
Returns the value of attribute all_pick.
-
#all_random ⇒ Object
readonly
Returns the value of attribute all_random.
-
#alternate_picking ⇒ Object
readonly
Returns the value of attribute alternate_picking.
-
#death_match ⇒ Object
readonly
Returns the value of attribute death_match.
-
#duplicate_hero ⇒ Object
readonly
Returns the value of attribute duplicate_hero.
-
#easy_mode ⇒ Object
readonly
Returns the value of attribute easy_mode.
-
#item_drop ⇒ Object
readonly
Returns the value of attribute item_drop.
-
#league ⇒ Object
readonly
Returns the value of attribute league.
-
#no_agility ⇒ Object
readonly
Returns the value of attribute no_agility.
-
#no_intelligence ⇒ Object
readonly
Returns the value of attribute no_intelligence.
-
#no_leavers ⇒ Object
readonly
Returns the value of attribute no_leavers.
-
#no_powerups ⇒ Object
readonly
Returns the value of attribute no_powerups.
-
#no_repick ⇒ Object
readonly
Returns the value of attribute no_repick.
-
#no_respawn_timer ⇒ Object
readonly
Returns the value of attribute no_respawn_timer.
-
#no_strength ⇒ Object
readonly
Returns the value of attribute no_strength.
-
#no_swap ⇒ Object
readonly
Returns the value of attribute no_swap.
-
#normal_mode ⇒ Object
readonly
Returns the value of attribute normal_mode.
-
#random_draft ⇒ Object
readonly
Returns the value of attribute random_draft.
-
#reverse_hero ⇒ Object
readonly
Returns the value of attribute reverse_hero.
-
#rs ⇒ Object
readonly
Returns the value of attribute rs.
-
#shuffle_players ⇒ Object
readonly
Returns the value of attribute shuffle_players.
-
#single_draft ⇒ Object
readonly
Returns the value of attribute single_draft.
-
#veto ⇒ Object
readonly
Returns the value of attribute veto.
Instance Method Summary collapse
-
#initialize(data) ⇒ Modes
constructor
A new instance of Modes.
Constructor Details
#initialize(data) ⇒ Modes
Returns a new instance of Modes.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/honstats/game.rb', line 43 def initialize(data) @normal_mode = HonStats::API.get_data("nm", data).to_i @single_draft = HonStats::API.get_data("sd", data).to_i @random_draft = HonStats::API.get_data("rd", data).to_i @death_match = HonStats::API.get_data("dm", data).to_i @league = HonStats::API.get_data("league", data).to_i @no_repick = HonStats::API.get_data("no_repick", data).to_i @no_agility = HonStats::API.get_data("no_agi", data).to_i @item_drop = HonStats::API.get_data("drp_itm", data).to_i @no_respawn_timer = HonStats::API.get_data("no_timer", data).to_i @no_swapping = HonStats::API.get_data("no_swap", data).to_i @no_intelligence = HonStats::API.get_data("no_int", data).to_i @alternate_picking = HonStats::API.get_data("alt_pick", data).to_i @no_strength = HonStats::API.get_data("no_str", data).to_i @no_powerups = HonStats::API.get_data("no_pups", data).to_i @duplicate_hero = HonStats::API.get_data("dup_h", data).to_i @all_pick = HonStats::API.get_data("ap", data).to_i @all_random = HonStats::API.get_data("ar", data).to_i @easy_mode = HonStats::API.get_data("em", data).to_i @rs = HonStats::API.get_data("rs", data).to_i @no_leavers = HonStats::API.get_data("nl", data).to_i @reverse_hero = HonStats::API.get_data("rev_hs", data).to_i @veto = HonStats::API.get_data("veto", data).to_i @shuffle_players = HonStats::API.get_data("shuf", data).to_i end |
Instance Attribute Details
#all_pick ⇒ Object (readonly)
Returns the value of attribute all_pick.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def all_pick @all_pick end |
#all_random ⇒ Object (readonly)
Returns the value of attribute all_random.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def all_random @all_random end |
#alternate_picking ⇒ Object (readonly)
Returns the value of attribute alternate_picking.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def alternate_picking @alternate_picking end |
#death_match ⇒ Object (readonly)
Returns the value of attribute death_match.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def death_match @death_match end |
#duplicate_hero ⇒ Object (readonly)
Returns the value of attribute duplicate_hero.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def duplicate_hero @duplicate_hero end |
#easy_mode ⇒ Object (readonly)
Returns the value of attribute easy_mode.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def easy_mode @easy_mode end |
#item_drop ⇒ Object (readonly)
Returns the value of attribute item_drop.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def item_drop @item_drop end |
#league ⇒ Object (readonly)
Returns the value of attribute league.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def league @league end |
#no_agility ⇒ Object (readonly)
Returns the value of attribute no_agility.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def no_agility @no_agility end |
#no_intelligence ⇒ Object (readonly)
Returns the value of attribute no_intelligence.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def no_intelligence @no_intelligence end |
#no_leavers ⇒ Object (readonly)
Returns the value of attribute no_leavers.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def no_leavers @no_leavers end |
#no_powerups ⇒ Object (readonly)
Returns the value of attribute no_powerups.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def no_powerups @no_powerups end |
#no_repick ⇒ Object (readonly)
Returns the value of attribute no_repick.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def no_repick @no_repick end |
#no_respawn_timer ⇒ Object (readonly)
Returns the value of attribute no_respawn_timer.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def no_respawn_timer @no_respawn_timer end |
#no_strength ⇒ Object (readonly)
Returns the value of attribute no_strength.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def no_strength @no_strength end |
#no_swap ⇒ Object (readonly)
Returns the value of attribute no_swap.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def no_swap @no_swap end |
#normal_mode ⇒ Object (readonly)
Returns the value of attribute normal_mode.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def normal_mode @normal_mode end |
#random_draft ⇒ Object (readonly)
Returns the value of attribute random_draft.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def random_draft @random_draft end |
#reverse_hero ⇒ Object (readonly)
Returns the value of attribute reverse_hero.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def reverse_hero @reverse_hero end |
#rs ⇒ Object (readonly)
Returns the value of attribute rs.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def rs @rs end |
#shuffle_players ⇒ Object (readonly)
Returns the value of attribute shuffle_players.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def shuffle_players @shuffle_players end |
#single_draft ⇒ Object (readonly)
Returns the value of attribute single_draft.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def single_draft @single_draft end |
#veto ⇒ Object (readonly)
Returns the value of attribute veto.
36 37 38 |
# File 'lib/honstats/game.rb', line 36 def veto @veto end |