Class: RBattlenet::D3::Hero

Inherits:
Endpoints::Base show all
Defined in:
lib/rbattlenet/endpoints/d3/hero.rb

Defined Under Namespace

Classes: FollowerItems, Items

Constant Summary collapse

SUPPORTED_FIELDS =
[:itself, :items, :follower_items]

Class Method Summary collapse

Methods inherited from Endpoints::Base

all, find

Class Method Details

.follower_itemsObject



14
15
16
# File 'lib/rbattlenet/endpoints/d3/hero.rb', line 14

def self.follower_items
  RBattlenet::D3::Hero::FollowerItems
end

.itemsObject



10
11
12
# File 'lib/rbattlenet/endpoints/d3/hero.rb', line 10

def self.items
  RBattlenet::D3::Hero::Items
end

.path(hero) ⇒ Object



6
7
8
# File 'lib/rbattlenet/endpoints/d3/hero.rb', line 6

def self.path(hero)
  RBattlenet.uri("d3/profile/#{hero[:battletag]}/hero/#{hero[:id]}?")
end