Sha256: 42c38eb34aa90d1c42999bd3b7940ecddc339e2f93f6c1d9963726facbf2cc5c
Contents?: true
Size: 759 Bytes
Versions: 2
Compression:
Stored size: 759 Bytes
Contents
# -*- encoding : utf-8 -*- require 'rubykassa/configuration' module Rubykassa class ConfigurationError < StandardError; end class Client class << self attr_accessor :configuration def configure self.configuration = Rubykassa::Configuration.new yield self.configuration raise ConfigurationError, "Alailable modes are :test or :production" unless [:test, :production].include? self.configuration.mode raise ConfigurationError, "Alailable http methods are :get or :post" unless [:get, :post].include? self.configuration.http_method raise ConfigurationError, "Alailable xml http methods are :get or :post" unless [:get, :post].include? self.configuration.xml_http_method end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubykassa-0.1.1 | lib/rubykassa/client.rb |
rubykassa-0.1.0 | lib/rubykassa/client.rb |