Class: Wassup::Pane::Content

Inherits:
Object
  • Object
show all
Defined in:
lib/wassup/pane.rb

Defined Under Namespace

Classes: Row

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title = nil) ⇒ Content



66
67
68
69
70
# File 'lib/wassup/pane.rb', line 66

def initialize(title = nil)
	@title = title
     @alert_level = nil
	@data = []	
end

Instance Attribute Details

#alert_levelObject

Returns the value of attribute alert_level.



64
65
66
# File 'lib/wassup/pane.rb', line 64

def alert_level
  @alert_level
end

#dataObject

Returns the value of attribute data.



63
64
65
# File 'lib/wassup/pane.rb', line 63

def data
  @data
end

#titleObject

Returns the value of attribute title.



62
63
64
# File 'lib/wassup/pane.rb', line 62

def title
  @title
end

Instance Method Details

#add_row(display, object = nil) ⇒ Object



72
73
74
# File 'lib/wassup/pane.rb', line 72

def add_row(display, object = nil)
	@data << Row.new(display, object)
end