Class: Covetous::Profile::Hero

Inherits:
Shen
  • Object
show all
Defined in:
lib/covetous/profile/hero.rb

Instance Attribute Summary

Attributes inherited from Shen

#response, #url

Instance Method Summary collapse

Methods inherited from Shen

#method_missing

Constructor Details

#initialize(battle_tag, hero_id) ⇒ Hero

Returns a new instance of Hero.



4
5
6
7
# File 'lib/covetous/profile/hero.rb', line 4

def initialize(battle_tag, hero_id)
  @url = "#{Covetous::Profile::BASE_URL}/#{battle_tag}/hero/#{hero_id}"
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Covetous::Shen