class Schlepp::Sink::TableObject::Factory

Public Class Methods

new(factory, components) click to toggle source
# File lib/schlepp/sink/table_object/factory.rb, line 7
def initialize(factory, components)
  @factory = factory
  @components = components
end

Public Instance Methods

new() click to toggle source
# File lib/schlepp/sink/table_object/factory.rb, line 12
def new
  @components.each(&:rotate)

  url = @components.inject(@factory.url) do |u, f|
    u.merge("#{u.path}.#{f.extension}")
  end

  Hydrogen::TableObject.new(@factory.model, url)
end
writer() click to toggle source
# File lib/schlepp/sink/table_object/factory.rb, line 22
def writer
  Writer::Factory.new(@factory, @components, self.new).new
end