Sha256: f2a1ef3c418d2070053d9bd5daed1bb4d4ffddce14832962ec0f72e9862ffab8

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 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 type
      wsdl.type(@type_name.split(':').last)
    end

    def singular?
      @singular == true
    end

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

    private

    def wsdl; @wsdl; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lolsoap-0.1.3 lib/lolsoap/wsdl/element.rb
lolsoap-0.1.2 lib/lolsoap/wsdl/element.rb