class Github::API::Factory

def self.new(klass, options={}, &block)


Instantiates a new github api object
def self.new(klass, options={}, &block)
  return create_instance(klass, options, &block) if klass
  raise ArgumentError, 'must provide API class to be instantiated'
end