Class: Presentation::Details
- Defined in:
- lib/presentation/details.rb
Overview
TODO: abstract what’s common between Record and Grid into a shared module or reusable objects or something
Instance Attribute Summary collapse
-
#title ⇒ Object
The display title for this presentation.
Attributes inherited from Grid
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Grid
#colspan, #links, #links=, #paginate?, #record_links, #record_links=
Methods inherited from Base
Methods included from Presenting::Configurable
Instance Attribute Details
#title ⇒ Object
The display title for this presentation. Will default based on the id.
9 10 11 |
# File 'lib/presentation/details.rb', line 9 def title @title end |
Instance Method Details
#fields ⇒ Object
17 18 19 |
# File 'lib/presentation/details.rb', line 17 def fields @fields ||= Presenting::FieldSet.new(Presenting::Attribute, :name, :value) end |
#fields=(args) ⇒ Object
11 12 13 14 15 |
# File 'lib/presentation/details.rb', line 11 def fields=(args) args.each do |field| self.fields << field end end |
#iname ⇒ Object
6 |
# File 'lib/presentation/details.rb', line 6 def iname; :details end |