Class: D3api::Career

Inherits:
BaseModel show all
Defined in:
lib/d3api/career.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Request

#get

Methods included from Connection

#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

#artisansObject

Returns the value of attribute artisans.



3
4
5
# File 'lib/d3api/career.rb', line 3

def artisans
  @artisans
end

#barbarian_time_playedObject

Returns the value of attribute barbarian_time_played.



3
4
5
# File 'lib/d3api/career.rb', line 3

def barbarian_time_played
  @barbarian_time_played
end

#battle_tagObject

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_playedObject

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_killsObject

Returns the value of attribute elite_kills.



3
4
5
# File 'lib/d3api/career.rb', line 3

def elite_kills
  @elite_kills
end

#fallen_heroesObject

Returns the value of attribute fallen_heroes.



3
4
5
# File 'lib/d3api/career.rb', line 3

def fallen_heroes
  @fallen_heroes
end

#hardcore_artisansObject

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_killsObject

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_progressionObject

Returns the value of attribute hardcore_progression.



3
4
5
# File 'lib/d3api/career.rb', line 3

def hardcore_progression
  @hardcore_progression
end

#heroesObject

Returns the value of attribute heroes.



3
4
5
# File 'lib/d3api/career.rb', line 3

def heroes
  @heroes
end

#last_hero_playedObject

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_updatedObject

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_playedObject

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_killsObject

Returns the value of attribute monster_kills.



3
4
5
# File 'lib/d3api/career.rb', line 3

def monster_kills
  @monster_kills
end

#progressionObject

Returns the value of attribute progression.



3
4
5
# File 'lib/d3api/career.rb', line 3

def progression
  @progression
end

#witch_doctor_time_playedObject

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_playedObject

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