Sha256: 7d322da289df6e636dc6bdc0a871628e8320aad21279a9a8a43d7d76f14b1104

Contents?: true

Size: 388 Bytes

Versions: 22

Compression:

Stored size: 388 Bytes

Contents

module Maxipago
  class Client
    APIVERSION = "3.1.1.15"

    attr_reader :response, :request

    def use(request)
      @request = request
    end

    def execute(opts = {})
      raise "Sets the api type before execute commands." if request.nil?
      raise ArgumentError, "Execute method needs options" if opts.empty?

      @response = request.send_command(opts)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
maxipago-0.1.30 lib/maxipago/client.rb
maxipago-0.1.29 lib/maxipago/client.rb
maxipago-0.1.28 lib/maxipago/client.rb
maxipago-0.1.27 lib/maxipago/client.rb
maxipago-0.1.26 lib/maxipago/client.rb
maxipago-0.1.25 lib/maxipago/client.rb
maxipago-0.1.24 lib/maxipago/client.rb
maxipago-0.1.23 lib/maxipago/client.rb
maxipago-0.1.22 lib/maxipago/client.rb
maxipago-0.1.21 lib/maxipago/client.rb
maxipago-0.1.20 lib/maxipago/client.rb
maxipago-0.1.19 lib/maxipago/client.rb
maxipago-0.1.18 lib/maxipago/client.rb
maxipago-0.1.17 lib/maxipago/client.rb
maxipago-0.1.16 lib/maxipago/client.rb
maxipago-0.1.15 lib/maxipago/client.rb
maxipago-0.1.14 lib/maxipago/client.rb
maxipago-0.1.13 lib/maxipago/client.rb
maxipago-0.1.12 lib/maxipago/client.rb
maxipago-0.1.11 lib/maxipago/client.rb