Sha256: e1c1d29970b7f180f72f15b8b0ec5945634c1bdb0e8db79e396d954210f9d6d2

Contents?: true

Size: 490 Bytes

Versions: 7

Compression:

Stored size: 490 Bytes

Contents

require 'wsdl/soap/servant_skelton_creator'

module Soybean
  module Generators
    class InterfaceGenerator
      include BaseGenerator

      attr_reader :name

      def initialize(wsdl)
        @wsdl = wsdl
        @name = (wsdl.name.name.underscore.gsub(/_service$/, '_interface') rescue 'base_interface')
      end

      def dir
        'interfaces'
      end

      def generate
        InterfaceBuilder.new(@wsdl, WSDL::SOAP::ClassNameCreator.new).dump
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
soybean-2.2.0 lib/soybean/generators/interface_generator.rb
soybean-2.1.5 lib/soybean/generators/interface_generator.rb
soybean-2.1.4 lib/soybean/generators/interface_generator.rb
soybean-2.1.3 lib/soybean/generators/interface_generator.rb
soybean-2.1.2 lib/soybean/generators/interface_generator.rb
soybean-2.1.1 lib/soybean/generators/interface_generator.rb
soybean-2.1.0 lib/soybean/generators/interface_generator.rb