Class: D3api::Career
Instance Attribute Summary collapse
-
#artisans ⇒ Object
Returns the value of attribute artisans.
-
#barbarian_time_played ⇒ Object
Returns the value of attribute barbarian_time_played.
-
#battle_tag ⇒ Object
Returns the value of attribute battle_tag.
-
#demon_hunter_time_played ⇒ Object
Returns the value of attribute demon_hunter_time_played.
-
#elite_kills ⇒ Object
Returns the value of attribute elite_kills.
-
#fallen_heroes ⇒ Object
Returns the value of attribute fallen_heroes.
-
#hardcore_artisans ⇒ Object
Returns the value of attribute hardcore_artisans.
-
#hardcore_monster_kills ⇒ Object
Returns the value of attribute hardcore_monster_kills.
-
#hardcore_progression ⇒ Object
Returns the value of attribute hardcore_progression.
-
#heroes ⇒ Object
Returns the value of attribute heroes.
-
#last_hero_played ⇒ Object
Returns the value of attribute last_hero_played.
-
#last_updated ⇒ Object
Returns the value of attribute last_updated.
-
#monk_time_played ⇒ Object
Returns the value of attribute monk_time_played.
-
#monster_kills ⇒ Object
Returns the value of attribute monster_kills.
-
#progression ⇒ Object
Returns the value of attribute progression.
-
#witch_doctor_time_played ⇒ Object
Returns the value of attribute witch_doctor_time_played.
-
#wizard_time_played ⇒ Object
Returns the value of attribute wizard_time_played.
Instance Method Summary collapse
-
#initialize(region, battletag_name, battletag_code) ⇒ Career
constructor
A new instance of Career.
Methods included from Request
Methods included from Connection
Constructor Details
#initialize(region, battletag_name, battletag_code) ⇒ Career
Returns a new instance of Career.
11 12 13 14 15 16 17 18 |
# File 'lib/d3api/career.rb', line 11 def initialize(region, battletag_name, battletag_code) json_response = find(region, battletag_name, battletag_code) values = super(json_response) set_method(values) end |
Instance Attribute Details
#artisans ⇒ Object
Returns the value of attribute artisans.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def artisans @artisans end |
#barbarian_time_played ⇒ Object
Returns the value of attribute barbarian_time_played.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def @barbarian_time_played end |
#battle_tag ⇒ Object
Returns the value of attribute battle_tag.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def battle_tag @battle_tag end |
#demon_hunter_time_played ⇒ Object
Returns the value of attribute demon_hunter_time_played.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def demon_hunter_time_played @demon_hunter_time_played end |
#elite_kills ⇒ Object
Returns the value of attribute elite_kills.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def elite_kills @elite_kills end |
#fallen_heroes ⇒ Object
Returns the value of attribute fallen_heroes.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def fallen_heroes @fallen_heroes end |
#hardcore_artisans ⇒ Object
Returns the value of attribute hardcore_artisans.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def hardcore_artisans @hardcore_artisans end |
#hardcore_monster_kills ⇒ Object
Returns the value of attribute hardcore_monster_kills.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def hardcore_monster_kills @hardcore_monster_kills end |
#hardcore_progression ⇒ Object
Returns the value of attribute hardcore_progression.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def hardcore_progression @hardcore_progression end |
#heroes ⇒ Object
Returns the value of attribute heroes.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def heroes @heroes end |
#last_hero_played ⇒ Object
Returns the value of attribute last_hero_played.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def last_hero_played @last_hero_played end |
#last_updated ⇒ Object
Returns the value of attribute last_updated.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def last_updated @last_updated end |
#monk_time_played ⇒ Object
Returns the value of attribute monk_time_played.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def monk_time_played @monk_time_played end |
#monster_kills ⇒ Object
Returns the value of attribute monster_kills.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def monster_kills @monster_kills end |
#progression ⇒ Object
Returns the value of attribute progression.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def progression @progression end |
#witch_doctor_time_played ⇒ Object
Returns the value of attribute witch_doctor_time_played.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def witch_doctor_time_played @witch_doctor_time_played end |
#wizard_time_played ⇒ Object
Returns the value of attribute wizard_time_played.
3 4 5 |
# File 'lib/d3api/career.rb', line 3 def wizard_time_played @wizard_time_played end |