lib/isbm_adaptor/client.rb
def validate_presence_of(value, name)
      if value.respond_to?(:each)
        value.each do |v|
          if v.blank?
            raise ArgumentError, "Values in #{name} must not be blank"
          end
        end
      else
        if value.blank?
          raise ArgumentError, "#{name} must not be blank"
        end
      end
    end
def validate_presence_of(value, name)
      if value.respond_to?(:each)
        value.each do |v|
          if v.blank?
            raise ArgumentError, "Values in #{name} must not be blank"
          end
        end
      else
        if value.blank?
          raise ArgumentError, "#{name} must not be blank"
        end
      end
    end
Creates a new ISBM client.

 @param wsdl_file [String] the filename of the WSDL
 @param endpoint [String] the SOAP endpoint URI
 @option options [Object] :logger (Rails.logger or $stdout) location where log should be output
 @option options [Boolean] :log (true) specify whether requests are logged
 @option options [Boolean] :pretty_print_xml (false) specify whether request and response XML are formatted
 Validates the presence of the passed value.

 @param value [Object] object to validate presence
 @param name [String] name of value to include in error message if not present
 @return [void]
 @raise [ArgumentError] if value is not present