Class: Arena::Entity::Avatar

Inherits:
Arena::Entity show all
Defined in:
lib/arena/entities/avatar.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

attr_reader, #initialize

Constructor Details

This class inherits a constructor from Arena::Base

Instance Attribute Details

#displayObject (readonly)

Returns the value of attribute display.



6
7
8
# File 'lib/arena/entities/avatar.rb', line 6

def display
  @display
end

#thumbObject (readonly)

Returns the value of attribute thumb.



6
7
8
# File 'lib/arena/entities/avatar.rb', line 6

def thumb
  @thumb
end

Instance Method Details

#custom(size = 40) ⇒ Object



8
9
10
# File 'lib/arena/entities/avatar.rb', line 8

def custom(size=40)
  thumb.gsub("s=40", "s=#{size}")
end