Class: Thinreports::BasicReport::Core::Shape::StackView::RowFormat

Inherits:
Format::Base
  • Object
show all
Defined in:
lib/thinreports/basic_report/core/shape/stack_view/row_format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Format::Base

#attributes, config_accessor, config_checker, config_reader, config_writer

Constructor Details

#initializeRowFormat

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

#itemsObject (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