Class: BN::Entity::D3::Profile

Inherits:
Base
  • Object
show all
Defined in:
lib/bn/entity/d3/profile.rb

Overview

A profile within Diablo 3.

Instance Method Summary collapse

Methods included from Helpers::HasAttributes

included, #initialize, #update_attributes

Instance Method Details

#battle_tagString

Get the battle tag.

Returns:

  • (String)


# File 'lib/bn/entity/d3/profile.rb', line 9

#battle_tag=String

Set the battle tag.

Parameters:

  • value (#to_s)

Returns:

  • (String)


19
# File 'lib/bn/entity/d3/profile.rb', line 19

attribute(:battle_tag) { |value| value.to_s.strip }

#fallen_heroes<Hero>

Get the fallen heroes.

Returns:



# File 'lib/bn/entity/d3/profile.rb', line 165

#fallen_heroes=<Hero>

Set the fallen heroes.

Parameters:

  • value (#to_a)

Returns:



175
# File 'lib/bn/entity/d3/profile.rb', line 175

attribute(:fallen_heroes) { |value| value.to_a }

#guild_nameString

Get the guild name.

Returns:

  • (String)


# File 'lib/bn/entity/d3/profile.rb', line 69

#guild_name=String

Set the guild name.

Parameters:

  • value (#to_s)

Returns:

  • (String)


79
# File 'lib/bn/entity/d3/profile.rb', line 79

attribute(:guild_name) { |value| value.to_s }

#heroes<Hero>

Get the heroes.

Returns:



# File 'lib/bn/entity/d3/profile.rb', line 81

#heroes=Hero

Set the last hero played.

Parameters:

  • value (Hero, #to_h)

Returns:



91
# File 'lib/bn/entity/d3/profile.rb', line 91

attribute(:heroes) { |value| value.to_a.collect { |hero| convert_hero(hero) } }

#highest_hardcore_levelInteger

Get the highest hardcore level.

Returns:

  • (Integer)


# File 'lib/bn/entity/d3/profile.rb', line 129

#highest_hardcore_level=Integer

Set the highest hardcore level.

Parameters:

  • value (#to_i)

Returns:

  • (Integer)


139
# File 'lib/bn/entity/d3/profile.rb', line 139

attribute(:highest_hardcore_level) { |value| value.to_i }

#killsHash

Get the number of kills per enemy type.

Returns:

  • (Hash)


# File 'lib/bn/entity/d3/profile.rb', line 117

#kills=Hash

Set the number of kills per enemy type.

Parameters:

  • value (#to_h)

Returns:

  • (Hash)


127
# File 'lib/bn/entity/d3/profile.rb', line 127

attribute(:kills) { |value| value.to_h }

#last_hero_playedHero

Get the last hero played.

Returns:



# File 'lib/bn/entity/d3/profile.rb', line 93

#last_updatedTime

Get the last updated time.

Returns:

  • (Time)


# File 'lib/bn/entity/d3/profile.rb', line 105

#last_updated=Time

Set the last updated time.

Parameters:

  • value (Time, #to_i)

Returns:

  • (Time)


115
# File 'lib/bn/entity/d3/profile.rb', line 115

attribute(:last_updated) { |value| convert_time(value) }

#paragon_levelInteger

Get the paragon level.

Returns:

  • (Integer)


# File 'lib/bn/entity/d3/profile.rb', line 21

#paragon_level=Integer

Set the paragon level.

Parameters:

  • value (#to_i)

Returns:

  • (Integer)


31
# File 'lib/bn/entity/d3/profile.rb', line 31

attribute(:paragon_level) { |value| value.to_i }

#paragon_level_hardcoreInteger

Get the paragon hardcore level.

Returns:

  • (Integer)


# File 'lib/bn/entity/d3/profile.rb', line 33

#paragon_level_hardcore=Integer

Set the paragon hardcore level.

Parameters:

  • value (#to_i)

Returns:

  • (Integer)


43
# File 'lib/bn/entity/d3/profile.rb', line 43

attribute(:paragon_level_hardcore) { |value| value.to_i }

#paragon_level_seasonInteger

Get the paragon season level.

Returns:

  • (Integer)


# File 'lib/bn/entity/d3/profile.rb', line 45

#paragon_level_season=Integer

Set the paragon season level.

Parameters:

  • value (#to_i)

Returns:

  • (Integer)


55
# File 'lib/bn/entity/d3/profile.rb', line 55

attribute(:paragon_level_season) { |value| value.to_i }

#paragon_level_season_hardcoreInteger

Get the paragon season hardcore level.

Returns:

  • (Integer)


# File 'lib/bn/entity/d3/profile.rb', line 57

#paragon_level_season_hardcore=Integer

Set the paragon season hardcore level.

Parameters:

  • value (#to_i)

Returns:

  • (Integer)


67
# File 'lib/bn/entity/d3/profile.rb', line 67

attribute(:paragon_level_season_hardcore) { |value| value.to_i }

#progressionHash

Get the act progression.

Returns:

  • (Hash)


# File 'lib/bn/entity/d3/profile.rb', line 153

#time_playedHash

Get the time played.

Returns:

  • (Hash)


# File 'lib/bn/entity/d3/profile.rb', line 141

#time_played=Hash

Set the act progression.

Parameters:

  • value (#to_h)

Returns:

  • (Hash)


151
# File 'lib/bn/entity/d3/profile.rb', line 151

attribute(:time_played) { |value| value.to_h }