Sha256: 8173a534935b15d3f5b03ef480143627c4ba17cf0bb338b41723aba5898f2fb5

Contents?: true

Size: 480 Bytes

Versions: 3

Compression:

Stored size: 480 Bytes

Contents

require 'oauth2'
require 'nation_builder/client'
require 'nation_builder/people'

module NationBuilder 

  class << self
    def new(options = {})
      NationBuilder::Client.new(options)
    end
    
    def method_missing(method, *args) 
      return super unless new.respond_to?(method)
      new.send(method, *args)
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nation_builder-0.0.6 lib/nation_builder.rb
nation_builder-0.0.3 lib/nation_builder.rb
nation_builder-0.0.1 lib/nation_builder.rb