Class: Arena::Entity::Avatar
- Inherits:
-
Arena::Entity
- Object
- Base
- Arena::Entity
- Arena::Entity::Avatar
- Defined in:
- lib/arena/entities/avatar.rb
Instance Attribute Summary collapse
-
#display ⇒ Object
readonly
Returns the value of attribute display.
-
#thumb ⇒ Object
readonly
Returns the value of attribute thumb.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Arena::Base
Instance Attribute Details
#display ⇒ Object (readonly)
Returns the value of attribute display.
6 7 8 |
# File 'lib/arena/entities/avatar.rb', line 6 def display @display end |
#thumb ⇒ Object (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 |