Class: HonStats::Classes::Modes

Inherits:
Object
  • Object
show all
Defined in:
lib/honstats/game.rb

Overview

Consilidated modes

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pickObject (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_randomObject (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_pickingObject (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_matchObject (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_heroObject (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_modeObject (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_dropObject (readonly)

Returns the value of attribute item_drop.



36
37
38
# File 'lib/honstats/game.rb', line 36

def item_drop
  @item_drop
end

#leagueObject (readonly)

Returns the value of attribute league.



36
37
38
# File 'lib/honstats/game.rb', line 36

def league
  @league
end

#no_agilityObject (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_intelligenceObject (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_leaversObject (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_powerupsObject (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_repickObject (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_timerObject (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_strengthObject (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_swapObject (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_modeObject (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_draftObject (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_heroObject (readonly)

Returns the value of attribute reverse_hero.



36
37
38
# File 'lib/honstats/game.rb', line 36

def reverse_hero
  @reverse_hero
end

#rsObject (readonly)

Returns the value of attribute rs.



36
37
38
# File 'lib/honstats/game.rb', line 36

def rs
  @rs
end

#shuffle_playersObject (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_draftObject (readonly)

Returns the value of attribute single_draft.



36
37
38
# File 'lib/honstats/game.rb', line 36

def single_draft
  @single_draft
end

#vetoObject (readonly)

Returns the value of attribute veto.



36
37
38
# File 'lib/honstats/game.rb', line 36

def veto
  @veto
end