Sha256: e09a38e9997510b76aeecda3b144ef8b950b0e2363a72ad656eda32a72153714

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

require 'builder'

module Shapewear
  module DSL
    private

    def options
      @options ||= {}
    end

    protected

    def wsdl_namespace(ns)
      options[:wsdl_namespace] = ns
    end

    def schema_namespace(ns)
      options[:schema_namespace] = ns
    end

    def endpoint_url(url)
      options[:endpoint_url] = url
    end

    def operation(name, ops = {})
      (options[:operations] ||= {})[name] = ops
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shapewear-0.0.2 lib/shapewear/dsl.rb