Class: Starcraft2::Character
- Inherits:
-
Object
- Object
- Starcraft2::Character
- Defined in:
- lib/starcraft2/character.rb
Instance Attribute Summary collapse
-
#clan_name ⇒ Object
Returns the value of attribute clan_name.
-
#clan_tag ⇒ Object
Returns the value of attribute clan_tag.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#profile_path ⇒ Object
Returns the value of attribute profile_path.
-
#realm ⇒ Object
Returns the value of attribute realm.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Character
constructor
A new instance of Character.
Constructor Details
Instance Attribute Details
#clan_name ⇒ Object
Returns the value of attribute clan_name.
3 4 5 |
# File 'lib/starcraft2/character.rb', line 3 def clan_name @clan_name end |
#clan_tag ⇒ Object
Returns the value of attribute clan_tag.
3 4 5 |
# File 'lib/starcraft2/character.rb', line 3 def clan_tag @clan_tag end |
#display_name ⇒ Object
Returns the value of attribute display_name.
3 4 5 |
# File 'lib/starcraft2/character.rb', line 3 def display_name @display_name end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/starcraft2/character.rb', line 3 def id @id end |
#profile_path ⇒ Object
Returns the value of attribute profile_path.
3 4 5 |
# File 'lib/starcraft2/character.rb', line 3 def profile_path @profile_path end |
#realm ⇒ Object
Returns the value of attribute realm.
3 4 5 |
# File 'lib/starcraft2/character.rb', line 3 def realm @realm end |
Class Method Details
.build(characters) ⇒ Object
9 10 11 12 13 |
# File 'lib/starcraft2/character.rb', line 9 def self.build(characters) characters.map do |c| new(c) end end |