Class: WSDL::Binding
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
required.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#soapbinding ⇒ Object
readonly
Returns the value of attribute soapbinding.
-
#type ⇒ Object
readonly
required.
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
- #targetnamespace ⇒ Object
Methods inherited from Info
Constructor Details
#initialize ⇒ Binding
Returns a new instance of Binding.
23 24 25 26 27 28 29 |
# File 'lib/wsdl/binding.rb', line 23 def initialize super @name = nil @type = nil @operations = XSD::NamedElements.new @soapbinding = nil end |
Instance Attribute Details
#name ⇒ Object (readonly)
required
18 19 20 |
# File 'lib/wsdl/binding.rb', line 18 def name @name end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
20 21 22 |
# File 'lib/wsdl/binding.rb', line 20 def operations @operations end |
#soapbinding ⇒ Object (readonly)
Returns the value of attribute soapbinding.
21 22 23 |
# File 'lib/wsdl/binding.rb', line 21 def soapbinding @soapbinding end |
#type ⇒ Object (readonly)
required
19 20 21 |
# File 'lib/wsdl/binding.rb', line 19 def type @type end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
53 54 55 56 57 58 59 60 61 62 |
# File 'lib/wsdl/binding.rb', line 53 def parse_attr(attr, value) case attr when NameAttrName @name = XSD::QName.new(targetnamespace, value.source) when TypeAttrName @type = value else nil end end |
#parse_element(element) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/wsdl/binding.rb', line 35 def parse_element(element) case element when OperationName o = OperationBinding.new @operations << o o when SOAPBindingName o = WSDL::SOAP::Binding.new @soapbinding = o o when DocumentationName o = Documentation.new o else nil end end |
#targetnamespace ⇒ Object
31 32 33 |
# File 'lib/wsdl/binding.rb', line 31 def targetnamespace parent.targetnamespace end |