Class: Bagel::Video::ClipBuilderFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/bagel/video/clip_builder_factory.rb

Constant Summary collapse

BUILDERS =
{
  intro: Bagel::Video::ClipBuilders::IntroClipBuilder,
  point: Bagel::Video::ClipBuilders::PointClipBuilder,
  stats: Bagel::Video::ClipBuilders::StatsClipBuilder
}

Class Method Summary collapse

Class Method Details

.for(type, data) ⇒ Object



9
10
11
# File 'lib/bagel/video/clip_builder_factory.rb', line 9

def self.for(type, data)
  BUILDERS[type].new(data)
end