Class: Wowr::Classes::ArenaTeamEmblem

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/arena_team.rb

Overview

An arena team’s logo

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#backgroundObject (readonly)

Returns the value of attribute background.



69
70
71
# File 'lib/wowr/arena_team.rb', line 69

def background
  @background
end

#border_colorObject (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_styleObject (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_colourObject (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_styleObject (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