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

Returns a new instance of Content.



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

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

Instance Attribute Details

#alert_levelObject

Returns the value of attribute alert_level.



58
59
60
# File 'lib/wassup/pane.rb', line 58

def alert_level
  @alert_level
end

#dataObject

Returns the value of attribute data.



57
58
59
# File 'lib/wassup/pane.rb', line 57

def data
  @data
end

#titleObject

Returns the value of attribute title.



56
57
58
# File 'lib/wassup/pane.rb', line 56

def title
  @title
end

Instance Method Details

#add_row(display, object = nil) ⇒ Object



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

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