Class: MegaBar::GridHtml

Inherits:
Object
  • Object
show all
Defined in:
app/controllers/mega_bar/grid_html.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGridHtml

Returns a new instance of GridHtml.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'app/controllers/mega_bar/grid_html.rb', line 14

def initialize
  @app_format = 'grid'
  @app_wrapper = '<table>'
  @app_wrapper_end = '</table>'
  @field_header_wrapper = '<th>'
  @field_header_wrapper_end =  '</th>'
  @record_wrapper = '<tr>'
  @record_wrapper_end = '<th>'
  @field_wrapper = '<td>'
  @field_wrapper_end = '</td>'
  @separate_header_row = true
end

Instance Attribute Details

#app_formatObject

Returns the value of attribute app_format.



3
4
5
# File 'app/controllers/mega_bar/grid_html.rb', line 3

def app_format
  @app_format
end

#app_wrapperObject

Returns the value of attribute app_wrapper.



4
5
6
# File 'app/controllers/mega_bar/grid_html.rb', line 4

def app_wrapper
  @app_wrapper
end

#app_wrapper_endObject

Returns the value of attribute app_wrapper_end.



6
7
8
# File 'app/controllers/mega_bar/grid_html.rb', line 6

def app_wrapper_end
  @app_wrapper_end
end

#field_header_wrapperObject

Returns the value of attribute field_header_wrapper.



5
6
7
# File 'app/controllers/mega_bar/grid_html.rb', line 5

def field_header_wrapper
  @field_header_wrapper
end

#field_header_wrapper_endObject

Returns the value of attribute field_header_wrapper_end.



8
9
10
# File 'app/controllers/mega_bar/grid_html.rb', line 8

def field_header_wrapper_end
  @field_header_wrapper_end
end

#field_wrapperObject

Returns the value of attribute field_wrapper.



11
12
13
# File 'app/controllers/mega_bar/grid_html.rb', line 11

def field_wrapper
  @field_wrapper
end

#field_wrapper_endObject

Returns the value of attribute field_wrapper_end.



12
13
14
# File 'app/controllers/mega_bar/grid_html.rb', line 12

def field_wrapper_end
  @field_wrapper_end
end

#record_wrapperObject

Returns the value of attribute record_wrapper.



9
10
11
# File 'app/controllers/mega_bar/grid_html.rb', line 9

def record_wrapper
  @record_wrapper
end

#record_wrapper_endObject

Returns the value of attribute record_wrapper_end.



10
11
12
# File 'app/controllers/mega_bar/grid_html.rb', line 10

def record_wrapper_end
  @record_wrapper_end
end

#separate_header_rowObject

Returns the value of attribute separate_header_row.



13
14
15
# File 'app/controllers/mega_bar/grid_html.rb', line 13

def separate_header_row
  @separate_header_row
end