class Rubykassa::ConfigurationError

Public Class Methods

raise_errors_for(configuration) click to toggle source
# File lib/rubykassa/client.rb, line 6
def raise_errors_for configuration
  raise ConfigurationError, "Available modes are :test or :production" unless [:test, :production].include? configuration.mode
  raise ConfigurationError, "Available http methods are :get or :post" unless [:get, :post].include? configuration.http_method
  raise ConfigurationError, "Available xml http methods are :get or :post" unless [:get, :post].include? configuration.xml_http_method
end