Sha256: 044566980aa26a184b753466535f9560ba1bd33585ea8a6765674d295dae45db

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

module Direct::API::V5
  class Client
    attr_reader :settings

    def initialize(settings = {})
      @settings = Settings.new(settings)
    end

    # Direct services methods
    def method_missing(method, *args)
      if args.empty?
        Service.new(client: self, service_name: method)
      else
        super
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
direct-api-v5-0.1.2 lib/direct/api/v5/client.rb
direct-api-v5-0.1.1 lib/direct/api/v5/client.rb
direct-api-v5-0.1.0 lib/direct/api/v5/client.rb