Class: Thinreports::BasicReport::Core::Shape::StackView::RowFormat
- Inherits:
-
Format::Base
- Object
- Format::Base
- Thinreports::BasicReport::Core::Shape::StackView::RowFormat
- Defined in:
- lib/thinreports/basic_report/core/shape/stack_view/row_format.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
- #find_item(id) ⇒ Object
-
#initialize ⇒ RowFormat
constructor
A new instance of RowFormat.
Methods inherited from Format::Base
#attributes, config_accessor, config_checker, config_reader, config_writer
Constructor Details
#initialize ⇒ RowFormat
Returns a new instance of RowFormat.
16 17 18 19 20 21 |
# File 'lib/thinreports/basic_report/core/shape/stack_view/row_format.rb', line 16 def initialize(*) super @items = [] @item_with_ids = {} initialize_items(attributes['items']) end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
14 15 16 |
# File 'lib/thinreports/basic_report/core/shape/stack_view/row_format.rb', line 14 def items @items end |
Instance Method Details
#find_item(id) ⇒ Object
23 24 25 |
# File 'lib/thinreports/basic_report/core/shape/stack_view/row_format.rb', line 23 def find_item(id) @item_with_ids[id.to_sym] end |