Class: HonStats::Classes::SimpleClan
- Inherits:
-
Object
- Object
- HonStats::Classes::SimpleClan
- Defined in:
- lib/honstats/character.rb
Overview
Consilidated clan info
Instance Attribute Summary collapse
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#rank ⇒ Object
readonly
Returns the value of attribute rank.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(data) ⇒ SimpleClan
constructor
A new instance of SimpleClan.
Constructor Details
#initialize(data) ⇒ SimpleClan
Returns a new instance of SimpleClan.
124 125 126 127 128 129 130 |
# File 'lib/honstats/character.rb', line 124 def initialize(data) @id = HonStats::API.get_data("clan_id", data).to_i @name = HonStats::API.get_data("name", data).to_s @tag = HonStats::API.get_data("tag", data).to_s @rank = HonStats::API.get_data("rank", data).to_s @icon = HonStats::API.get_data("file_name", data).to_s end |
Instance Attribute Details
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
122 123 124 |
# File 'lib/honstats/character.rb', line 122 def icon @icon end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
122 123 124 |
# File 'lib/honstats/character.rb', line 122 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
122 123 124 |
# File 'lib/honstats/character.rb', line 122 def name @name end |
#rank ⇒ Object (readonly)
Returns the value of attribute rank.
122 123 124 |
# File 'lib/honstats/character.rb', line 122 def rank @rank end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
122 123 124 |
# File 'lib/honstats/character.rb', line 122 def tag @tag end |