class Thinreports::Core::Shape::List::SectionFormat
Public Class Methods
new(*)
click to toggle source
Calls superclass method
Thinreports::Core::Shape::Manager::Format::new
# File lib/thinreports/core/shape/list/section_format.rb, line 16 def initialize(*) super initialize_items(attributes['items']) end
Private Instance Methods
initialize_items(item_schemas)
click to toggle source
# File lib/thinreports/core/shape/list/section_format.rb, line 23 def initialize_items(item_schemas) item_schemas.each do |item_schema| id, type = item_schema.values_at 'id', 'type' next if id.empty? shapes[id.to_sym] = Core::Shape::Format(type).new(item_schema) end end