Sha256: c93d93370a7229229a38578d3d0206cec78716176e01152f1101b132839cacc4

Contents?: true

Size: 617 Bytes

Versions: 1

Compression:

Stored size: 617 Bytes

Contents

module SoapObject
  module ClassMethods

    def wsdl(url)
      define_method(:with_wsdl) do 
        @wsdl ||= url
        {wsdl: @wsdl}
      end
    end

    def proxy(url)
      define_method(:with_proxy) do
        @proxy ||= url
        {proxy: @proxy}
      end
    end

    def open_timeout(timeout)
      define_method(:with_open_timeout) do
        @open_timeout ||= timeout
        {open_timeout: @open_timeout}
      end
    end

    def read_timeout(timeout)
      define_method(:with_read_timeout) do
        @read_timeout ||= timeout
        {read_timeout: @read_timeout}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
soap-object-0.1 lib/soap-object/class_methods.rb