Sha256: 5e49fa42a38a929a2524aeaec9bd02d339fd9d6f232b4616bbffc37a82133539

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

class LolSoap::WSDL
  class Element
    attr_reader :name

    def initialize(wsdl, name, type_name, singular = true)
      @wsdl      = wsdl
      @name      = name
      @type_name = type_name
      @singular  = singular
    end

    def singular?
      @singular == true
    end

    def type
      @type ||= wsdl.type(@type_name)
    end

    def inspect
      "<#{self.class} name=#{name.inspect} type=#{@type_name.inspect}>"
    end

    private

    def wsdl; @wsdl; end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lolsoap-0.2.0 lib/lolsoap/wsdl/element.rb