Sha256: f37746047573747ae73d2acc60d9d6b181d6d93eac1acdad599e71c3ce66d5d9

Contents?: true

Size: 605 Bytes

Versions: 1

Compression:

Stored size: 605 Bytes

Contents

require 'singleton'

module Sinatra
  module Soap
    class Wsdl
      include Singleton

      attr_accessor :actions, :namespace

      def initialize
        @actions = {}
      end

      def generate
        # raise "Not implemented"
      end

      def [](key)
        actions[key]
      end

      def register_action(name, *args, &block)
        actions[name] = {}
        args = args.pop
        unless args.nil?
          args.each do |key, value|
            actions[name][key] = value
          end
        end
        actions[name][:block] = block if block_given?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra-soap-0.1.4 lib/sinatra/soap/wsdl.rb