Module: Dota

Defined in:
lib/dota.rb,
lib/dota/version.rb,
lib/dota/api/hero.rb,
lib/dota/api/item.rb,
lib/dota/api/team.rb,
lib/dota/api/match.rb,
lib/dota/api/client.rb,
lib/dota/api/entity.rb,
lib/dota/api/friend.rb,
lib/dota/api/league.rb,
lib/dota/api/ability.rb,
lib/dota/utils/mapped.rb,
lib/dota/configuration.rb,
lib/dota/api/basic_side.rb,
lib/dota/api/live_match.rb,
lib/dota/api/match/side.rb,
lib/dota/api/match/unit.rb,
lib/dota/api/basic_match.rb,
lib/dota/api/match/draft.rb,
lib/dota/api/basic_player.rb,
lib/dota/api/match/player.rb,
lib/dota/api/missing_hero.rb,
lib/dota/utils/inspectable.rb,
lib/dota/api/cosmetic/rarity.rb,
lib/dota/api/live_match/side.rb,
lib/dota/api/scheduled_match.rb,
lib/dota/api/live_match/player.rb,
lib/dota/api/match/ability_upgrade.rb

Defined Under Namespace

Modules: API, Utilities Classes: Configuration

Constant Summary collapse

VERSION =
"0.0.21"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject


47
48
49
# File 'lib/dota.rb', line 47

def configuration
  api.configuration
end

Class Method Details

.apiObject


39
40
41
# File 'lib/dota.rb', line 39

def api
  @client ||= API::Client.new
end

.configure(&block) ⇒ Object


43
44
45
# File 'lib/dota.rb', line 43

def configure(&block)
  api.configure(&block)
end

.rootObject


51
52
53
# File 'lib/dota.rb', line 51

def root
  Gem::Specification.find_by_name("dota").gem_dir
end