Sha256: 972db00af21f64a699a67d7bc7d8912181475d00c1f0562113879d9df336d486

Contents?: true

Size: 611 Bytes

Versions: 8

Compression:

Stored size: 611 Bytes

Contents

require 'paychex/configuration'
require 'paychex/error'
require 'paychex/api'
require 'paychex/client'

module Paychex
  extend Configuration

  # Alias for Paychex::Client.new
  #
  # @return [Paychex::Client]
  def self.client(options = {})
    ::Paychex::Client.new(options)
  end

  # Delegate to Paychex::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)

    client.send(method, *args, &block)
  end

  # Delegate to Paychex::Client
  def self.respond_to?(method, include_all = false)
    client.respond_to?(method, include_all) || super
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
paychex-0.3.3 lib/paychex.rb
paychex-0.3.2 lib/paychex.rb
paychex-0.3.1 lib/paychex.rb
paychex-0.3.0 lib/paychex.rb
paychex-0.2.2 lib/paychex.rb
paychex-0.2.1 lib/paychex.rb
paychex-0.2.0 lib/paychex.rb
paychex-0.1.1 lib/paychex.rb