Class: BN::Entity::D3::Profile
Overview
A profile within Diablo 3.
Instance Method Summary collapse
-
#battle_tag ⇒ String
Get the battle tag.
-
#battle_tag= ⇒ String
Set the battle tag.
-
#fallen_heroes ⇒ <Hero>
Get the fallen heroes.
-
#fallen_heroes= ⇒ <Hero>
Set the fallen heroes.
-
#guild_name ⇒ String
Get the guild name.
-
#guild_name= ⇒ String
Set the guild name.
-
#heroes ⇒ <Hero>
Get the heroes.
-
#heroes= ⇒ Hero
Set the last hero played.
-
#highest_hardcore_level ⇒ Integer
Get the highest hardcore level.
-
#highest_hardcore_level= ⇒ Integer
Set the highest hardcore level.
-
#kills ⇒ Hash
Get the number of kills per enemy type.
-
#kills= ⇒ Hash
Set the number of kills per enemy type.
-
#last_hero_played ⇒ Hero
Get the last hero played.
-
#last_updated ⇒ Time
Get the last updated time.
-
#last_updated= ⇒ Time
Set the last updated time.
-
#paragon_level ⇒ Integer
Get the paragon level.
-
#paragon_level= ⇒ Integer
Set the paragon level.
-
#paragon_level_hardcore ⇒ Integer
Get the paragon hardcore level.
-
#paragon_level_hardcore= ⇒ Integer
Set the paragon hardcore level.
-
#paragon_level_season ⇒ Integer
Get the paragon season level.
-
#paragon_level_season= ⇒ Integer
Set the paragon season level.
-
#paragon_level_season_hardcore ⇒ Integer
Get the paragon season hardcore level.
-
#paragon_level_season_hardcore= ⇒ Integer
Set the paragon season hardcore level.
-
#progression ⇒ Hash
Get the act progression.
-
#time_played ⇒ Hash
Get the time played.
-
#time_played= ⇒ Hash
Set the act progression.
Methods included from Helpers::HasAttributes
included, #initialize, #update_attributes
Instance Method Details
#battle_tag ⇒ String
Get the battle tag.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 9
|
#battle_tag= ⇒ String
Set the battle tag.
19 |
# File 'lib/bn/entity/d3/profile.rb', line 19 attribute(:battle_tag) { |value| value.to_s.strip } |
#fallen_heroes= ⇒ <Hero>
Set the fallen heroes.
175 |
# File 'lib/bn/entity/d3/profile.rb', line 175 attribute(:fallen_heroes) { |value| value.to_a } |
#guild_name ⇒ String
Get the guild name.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 69
|
#guild_name= ⇒ String
Set the guild name.
79 |
# File 'lib/bn/entity/d3/profile.rb', line 79 attribute(:guild_name) { |value| value.to_s } |
#heroes= ⇒ Hero
Set the last hero played.
91 |
# File 'lib/bn/entity/d3/profile.rb', line 91 attribute(:heroes) { |value| value.to_a.collect { |hero| convert_hero(hero) } } |
#highest_hardcore_level ⇒ Integer
Get the highest hardcore level.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 129
|
#highest_hardcore_level= ⇒ Integer
Set the highest hardcore level.
139 |
# File 'lib/bn/entity/d3/profile.rb', line 139 attribute(:highest_hardcore_level) { |value| value.to_i } |
#kills ⇒ Hash
Get the number of kills per enemy type.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 117
|
#kills= ⇒ Hash
Set the number of kills per enemy type.
127 |
# File 'lib/bn/entity/d3/profile.rb', line 127 attribute(:kills) { |value| value.to_h } |
#last_updated ⇒ Time
Get the last updated time.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 105
|
#last_updated= ⇒ Time
Set the last updated time.
115 |
# File 'lib/bn/entity/d3/profile.rb', line 115 attribute(:last_updated) { |value| convert_time(value) } |
#paragon_level ⇒ Integer
Get the paragon level.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 21
|
#paragon_level= ⇒ Integer
Set the paragon level.
31 |
# File 'lib/bn/entity/d3/profile.rb', line 31 attribute(:paragon_level) { |value| value.to_i } |
#paragon_level_hardcore ⇒ Integer
Get the paragon hardcore level.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 33
|
#paragon_level_hardcore= ⇒ Integer
Set the paragon hardcore level.
43 |
# File 'lib/bn/entity/d3/profile.rb', line 43 attribute(:paragon_level_hardcore) { |value| value.to_i } |
#paragon_level_season ⇒ Integer
Get the paragon season level.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 45
|
#paragon_level_season= ⇒ Integer
Set the paragon season level.
55 |
# File 'lib/bn/entity/d3/profile.rb', line 55 attribute(:paragon_level_season) { |value| value.to_i } |
#paragon_level_season_hardcore ⇒ Integer
Get the paragon season hardcore level.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 57
|
#paragon_level_season_hardcore= ⇒ Integer
Set the paragon season hardcore level.
67 |
# File 'lib/bn/entity/d3/profile.rb', line 67 attribute(:paragon_level_season_hardcore) { |value| value.to_i } |
#progression ⇒ Hash
Get the act progression.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 153
|
#time_played ⇒ Hash
Get the time played.
|
|
# File 'lib/bn/entity/d3/profile.rb', line 141
|
#time_played= ⇒ Hash
Set the act progression.
151 |
# File 'lib/bn/entity/d3/profile.rb', line 151 attribute(:time_played) { |value| value.to_h } |