Class: Item

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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(message, size, color, type)
  @message = message
  @size = size
  @color = color
  @type = type
end

Instance Attribute Details

#colorObject

Returns the value of attribute color.



8
9
10
# File 'lib/gl_tail/item.rb', line 8

def color
  @color
end

#messageObject

Returns the value of attribute message.



8
9
10
# File 'lib/gl_tail/item.rb', line 8

def message
  @message
end

#sizeObject

Returns the value of attribute size.



8
9
10
# File 'lib/gl_tail/item.rb', line 8

def size
  @size
end

#typeObject

Returns the value of attribute type.



8
9
10
# File 'lib/gl_tail/item.rb', line 8

def type
  @type
end