Class: WSDL::SOAP::Binding
Instance Attribute Summary collapse
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#transport ⇒ Object
readonly
Returns the value of attribute transport.
Attributes inherited from Info
Instance Method Summary collapse
-
#initialize ⇒ Binding
constructor
A new instance of Binding.
- #parse_attr(attr, value) ⇒ Object
- #parse_element(element) ⇒ Object
Methods inherited from Info
Constructor Details
#initialize ⇒ Binding
Returns a new instance of Binding.
20 21 22 23 24 |
# File 'lib/wsdl/soap/binding.rb', line 20 def initialize super @style = nil @transport = nil end |
Instance Attribute Details
#style ⇒ Object (readonly)
Returns the value of attribute style.
17 18 19 |
# File 'lib/wsdl/soap/binding.rb', line 17 def style @style end |
#transport ⇒ Object (readonly)
Returns the value of attribute transport.
18 19 20 |
# File 'lib/wsdl/soap/binding.rb', line 18 def transport @transport end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/wsdl/soap/binding.rb', line 30 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
26 27 28 |
# File 'lib/wsdl/soap/binding.rb', line 26 def parse_element(element) nil end |