Class: Wizport::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/wizport/engine/column.rb

Constant Summary collapse

TYPE =
{default:0, image:1}
ALIGN =
{}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Column

Returns a new instance of Column.



13
14
15
16
17
18
19
# File 'lib/wizport/engine/column.rb', line 13

def initialize(options = {})
  @title = options.delete(:title) || ""
  @name = options.delete(:name) || ""
  @width = options.delete(:width) || 50
  @clazz = options.delete(clazz) || Object

end

Instance Attribute Details

#clazzObject

Returns the value of attribute clazz.



11
12
13
# File 'lib/wizport/engine/column.rb', line 11

def clazz
  @clazz
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/wizport/engine/column.rb', line 11

def name
  @name
end

#titleObject

Returns the value of attribute title.



11
12
13
# File 'lib/wizport/engine/column.rb', line 11

def title
  @title
end

#widthObject

Returns the value of attribute width.



11
12
13
# File 'lib/wizport/engine/column.rb', line 11

def width
  @width
end