Sha256: 7a20ed7e2a2e4cab64182924062c0c96ba7adfbb0d6485e5a427724c7665b701

Contents?: true

Size: 640 Bytes

Versions: 18

Compression:

Stored size: 640 Bytes

Contents

class LolSoap::WSDL
  class Element
    attr_reader :name, :prefix, :type_reference

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

    def type
      type_reference.type
    end

    def singular?
      @singular == true
    end

    def inspect
      "<#{self.class} name=#{prefix_and_name.inspect} type=#{type.to_s.inspect}>"
    end

    def prefix_and_name
      "#{prefix}:#{name}"
    end

    private

    def wsdl; @wsdl; end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
lolsoap-0.11.0 lib/lolsoap/wsdl/element.rb
lolsoap-0.10.0 lib/lolsoap/wsdl/element.rb
lolsoap-0.9.0 lib/lolsoap/wsdl/element.rb
lolsoap-0.8.3 lib/lolsoap/wsdl/element.rb
lolsoap-0.8.2 lib/lolsoap/wsdl/element.rb
lolsoap-0.8.1 lib/lolsoap/wsdl/element.rb
lolsoap-0.8.0 lib/lolsoap/wsdl/element.rb
lolsoap-0.7.0 lib/lolsoap/wsdl/element.rb
lolsoap-0.6.1 lib/lolsoap/wsdl/element.rb
lolsoap-0.6.0 lib/lolsoap/wsdl/element.rb
lolsoap-0.5.1 lib/lolsoap/wsdl/element.rb
lolsoap-0.5.0 lib/lolsoap/wsdl/element.rb
lolsoap-0.4.2 lib/lolsoap/wsdl/element.rb
lolsoap-0.4.1 lib/lolsoap/wsdl/element.rb
lolsoap-0.4.0 lib/lolsoap/wsdl/element.rb
lolsoap-0.3.2 lib/lolsoap/wsdl/element.rb
lolsoap-0.3.1 lib/lolsoap/wsdl/element.rb
lolsoap-0.3.0 lib/lolsoap/wsdl/element.rb