Class: Item
- Inherits:
-
Object
- Object
- Item
- Defined in:
- lib/gl_tail/item.rb
Overview
gl_tail.rb - OpenGL visualization of your server traffic Copyright 2007 Erlend Simonsen <[email protected]>
Licensed under the GNU General Public License v2 (see LICENSE)
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#message ⇒ Object
Returns the value of attribute message.
-
#size ⇒ Object
Returns the value of attribute size.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(message, size, color, type) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(message, size, color, type) ⇒ Item
Returns a new instance of Item.
10 11 12 13 14 15 |
# File 'lib/gl_tail/item.rb', line 10 def initialize(, size, color, type) @message = @size = size @color = color @type = type end |
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
8 9 10 |
# File 'lib/gl_tail/item.rb', line 8 def color @color end |
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/gl_tail/item.rb', line 8 def @message end |
#size ⇒ Object
Returns the value of attribute size.
8 9 10 |
# File 'lib/gl_tail/item.rb', line 8 def size @size end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/gl_tail/item.rb', line 8 def type @type end |