Sha256: 1b4afdbac34ba3562fc5004a4e44dace91a8edc75b303eb268e5df5a0951bcb8

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 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
      @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

1 entries across 1 versions & 1 rubygems

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