Class: WSDL::Binding
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#soapbinding ⇒ Object
readonly
Returns the value of attribute soapbinding.
-
#type ⇒ Object
readonly
required 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.
22 23 24 25 26 27 28 |
# File 'lib/wsdl/binding.rb', line 22 def initialize super @name = nil @type = nil @operations = XSD::NamedElements.new @soapbinding = nil end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
17 18 19 |
# File 'lib/wsdl/binding.rb', line 17 def name @name end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations
19 20 21 |
# File 'lib/wsdl/binding.rb', line 19 def operations @operations end |
#soapbinding ⇒ Object (readonly)
Returns the value of attribute soapbinding
20 21 22 |
# File 'lib/wsdl/binding.rb', line 20 def soapbinding @soapbinding end |
#type ⇒ Object (readonly)
required required
18 19 20 |
# File 'lib/wsdl/binding.rb', line 18 def type @type end |
Instance Method Details
#parse_attr(attr, value) ⇒ Object
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/wsdl/binding.rb', line 52 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
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/wsdl/binding.rb', line 34 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
30 31 32 |
# File 'lib/wsdl/binding.rb', line 30 def targetnamespace parent.targetnamespace end |