class Hoze::SourceFactory

Public Class Methods

new() click to toggle source
# File lib/hoze/source_factory.rb, line 8
def initialize
end

Public Instance Methods

build(configuration) click to toggle source
# File lib/hoze/source_factory.rb, line 11
def build configuration
  case configuration.connector.type
  when 'pubsub'
     Hoze::PubSubSource.new configuration
  else
    raise Exception.new("Connector #{configuration.connector[:type]} not implemented")
  end
end