Class: Thinreports::SectionReport::Schema::Section::Base

Inherits:
BasicReport::Core::Shape::Manager::Format show all
Defined in:
lib/thinreports/section_report/schema/section.rb

Direct Known Subclasses

Detail, Footer, Header

Instance Attribute Summary collapse

Attributes inherited from BasicReport::Core::Shape::Manager::Format

#identifier

Instance Method Summary collapse

Methods inherited from BasicReport::Core::Shape::Manager::Format

#find_shape, #has_shape?, #shapes

Methods inherited from BasicReport::Core::Format::Base

#attributes, config_accessor, config_checker, config_reader, config_writer

Constructor Details

#initialize(schema_data, items:) ⇒ Base

Returns a new instance of Base.



15
16
17
18
# File 'lib/thinreports/section_report/schema/section.rb', line 15

def initialize(schema_data, items:)
  super(schema_data)
  initialize_items(items)
end

Instance Attribute Details

#itemsObject (readonly)

Returns the value of attribute items.



13
14
15
# File 'lib/thinreports/section_report/schema/section.rb', line 13

def items
  @items
end

Instance Method Details

#find_item(id) ⇒ Object



20
21
22
# File 'lib/thinreports/section_report/schema/section.rb', line 20

def find_item(id)
  @item_with_ids[id.to_sym]
end