Sha256: b5ba46b7bb99cb8b71e00d5c02272fe184edeb7d6d3fdafb2cb3d20a27baf9fa

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

module SoapObject
  class SslOptions
    attr_accessor :verify_mode, :version

    def initialize
      yield self if block_given?
    end

    def options
      build_options
    end

    private

    def build_options
      options = {}
      options[:ssl_verify_mode] = verify_mode if verify_mode
      options[:ssl_version] = version if version
      options
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
soap-object-0.6.8 lib/soap-object/ssl_options.rb
soap-object-0.6.7 lib/soap-object/ssl_options.rb
soap-object-0.6.6 lib/soap-object/ssl_options.rb