Sha256: 359077098403509b8c1b6abf703e10453c6122a6d2a2148459d5304eabbc9a7c

Contents?: true

Size: 708 Bytes

Versions: 1

Compression:

Stored size: 708 Bytes

Contents

require 'constants'
require 'configuration'
require 'connection'
require 'authorization'
require 'api'


require 'active_support/all'
require 'vertebrae/railties' if defined? Rails


module Vertebrae
  extend Configuration


  def logger
    @@logger ||= Logger.new(STDOUT)
  end

  def logger=(logger)
    @@logger = logger
  end

  # implement this in your api
  #
  def new(options = {}, &block)
    raise "implement me!"
  end

  def method_missing(method, *args, &block)
    return super unless new.respond_to?(method)
    new.send(method, *args, &block)
  end

  def respond_to?(method, include_private = false)
    new.respond_to?(method, include_private) || super(method, include_private)
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vertebrae-0.1.0 lib/vertebrae.rb