Class: Thinreports::SectionReport::Schema::Section::Base
- Inherits:
-
BasicReport::Core::Shape::Manager::Format
- Object
- BasicReport::Core::Format::Base
- BasicReport::Core::Shape::Manager::Format
- Thinreports::SectionReport::Schema::Section::Base
- Defined in:
- lib/thinreports/section_report/schema/section.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Attributes inherited from BasicReport::Core::Shape::Manager::Format
Instance Method Summary collapse
- #find_item(id) ⇒ Object
-
#initialize(schema_data, items:) ⇒ Base
constructor
A new instance of Base.
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
#items ⇒ Object (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 |