Class: Wowr::Classes::ArenaTeamEmblem
- Inherits:
-
Object
- Object
- Wowr::Classes::ArenaTeamEmblem
- Defined in:
- lib/wowr/classes.rb
Instance Attribute Summary collapse
-
#background ⇒ Object
readonly
Returns the value of attribute background.
-
#border_color ⇒ Object
readonly
Returns the value of attribute border_color.
-
#border_style ⇒ Object
readonly
Returns the value of attribute border_style.
-
#icon_colour ⇒ Object
readonly
Returns the value of attribute icon_colour.
-
#icon_style ⇒ Object
readonly
Returns the value of attribute icon_style.
Instance Method Summary collapse
-
#initialize(elem) ⇒ ArenaTeamEmblem
constructor
A new instance of ArenaTeamEmblem.
Constructor Details
#initialize(elem) ⇒ ArenaTeamEmblem
Returns a new instance of ArenaTeamEmblem.
1327 1328 1329 1330 1331 1332 1333 |
# File 'lib/wowr/classes.rb', line 1327 def initialize(elem) @background = elem[:background] @border_color = elem[:borderColor] @border_style = elem[:borderStyle].to_i @icon_color = elem[:iconColor] @icon_style = elem[:iconStyle].to_i end |
Instance Attribute Details
#background ⇒ Object (readonly)
Returns the value of attribute background.
1325 1326 1327 |
# File 'lib/wowr/classes.rb', line 1325 def background @background end |
#border_color ⇒ Object (readonly)
Returns the value of attribute border_color.
1325 1326 1327 |
# File 'lib/wowr/classes.rb', line 1325 def border_color @border_color end |
#border_style ⇒ Object (readonly)
Returns the value of attribute border_style.
1325 1326 1327 |
# File 'lib/wowr/classes.rb', line 1325 def border_style @border_style end |
#icon_colour ⇒ Object (readonly)
Returns the value of attribute icon_colour.
1325 1326 1327 |
# File 'lib/wowr/classes.rb', line 1325 def icon_colour @icon_colour end |
#icon_style ⇒ Object (readonly)
Returns the value of attribute icon_style.
1325 1326 1327 |
# File 'lib/wowr/classes.rb', line 1325 def icon_style @icon_style end |