Class: Wowr::Classes::ArenaTeamEmblem
- Inherits:
-
Object
- Object
- Wowr::Classes::ArenaTeamEmblem
- Defined in:
- lib/wowr/arena_team.rb
Overview
An arena team’s logo
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.
71 72 73 74 75 76 77 |
# File 'lib/wowr/arena_team.rb', line 71 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.
69 70 71 |
# File 'lib/wowr/arena_team.rb', line 69 def background @background end |
#border_color ⇒ Object (readonly)
Returns the value of attribute border_color.
69 70 71 |
# File 'lib/wowr/arena_team.rb', line 69 def border_color @border_color end |
#border_style ⇒ Object (readonly)
Returns the value of attribute border_style.
69 70 71 |
# File 'lib/wowr/arena_team.rb', line 69 def border_style @border_style end |
#icon_colour ⇒ Object (readonly)
Returns the value of attribute icon_colour.
69 70 71 |
# File 'lib/wowr/arena_team.rb', line 69 def icon_colour @icon_colour end |
#icon_style ⇒ Object (readonly)
Returns the value of attribute icon_style.
69 70 71 |
# File 'lib/wowr/arena_team.rb', line 69 def icon_style @icon_style end |