Class: WSDL::SOAP::Binding

Inherits:
Info show all
Defined in:
lib/wsdl/soap/binding.rb

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeBinding

Returns a new instance of Binding.



21
22
23
24
25
# File 'lib/wsdl/soap/binding.rb', line 21

def initialize
  super
  @style = nil
  @transport = nil
end

Instance Attribute Details

#styleObject (readonly)

Returns the value of attribute style.



18
19
20
# File 'lib/wsdl/soap/binding.rb', line 18

def style
  @style
end

#transportObject (readonly)

Returns the value of attribute transport.



19
20
21
# File 'lib/wsdl/soap/binding.rb', line 19

def transport
  @transport
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/wsdl/soap/binding.rb', line 31

def parse_attr(attr, value)
  case attr
  when StyleAttrName
    if ["document", "rpc"].include?(value.source)
	@style = value.source.intern
    else
	raise Parser::AttributeConstraintError.new(
        "Unexpected value #{ value }.")
    end
  when TransportAttrName
    @transport = value.source
  else
    nil
  end
end

#parse_element(element) ⇒ Object



27
28
29
# File 'lib/wsdl/soap/binding.rb', line 27

def parse_element(element)
  nil
end