Class: LolSoap::WSDL::Element
- Inherits:
-
Object
- Object
- LolSoap::WSDL::Element
- Defined in:
- lib/lolsoap/wsdl/element.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#type_reference ⇒ Object
readonly
Returns the value of attribute type_reference.
Instance Method Summary collapse
-
#initialize(wsdl, name, prefix, type_reference, singular = true) ⇒ Element
constructor
A new instance of Element.
- #inspect ⇒ Object
- #prefix_and_name ⇒ Object
- #singular? ⇒ Boolean
- #type ⇒ Object
Constructor Details
#initialize(wsdl, name, prefix, type_reference, singular = true) ⇒ Element
Returns a new instance of Element.
5 6 7 8 9 10 11 |
# File 'lib/lolsoap/wsdl/element.rb', line 5 def initialize(wsdl, name, prefix, type_reference, singular = true) @wsdl = wsdl @name = name @prefix = prefix @type_reference = type_reference @singular = singular end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/lolsoap/wsdl/element.rb', line 3 def name @name end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
3 4 5 |
# File 'lib/lolsoap/wsdl/element.rb', line 3 def prefix @prefix end |
#type_reference ⇒ Object (readonly)
Returns the value of attribute type_reference.
3 4 5 |
# File 'lib/lolsoap/wsdl/element.rb', line 3 def type_reference @type_reference end |
Instance Method Details
#inspect ⇒ Object
21 22 23 |
# File 'lib/lolsoap/wsdl/element.rb', line 21 def inspect "<#{self.class} name=#{prefix_and_name.inspect} type=#{type.to_s.inspect}>" end |
#prefix_and_name ⇒ Object
25 26 27 |
# File 'lib/lolsoap/wsdl/element.rb', line 25 def prefix_and_name "#{prefix}:#{name}" end |
#singular? ⇒ Boolean
17 18 19 |
# File 'lib/lolsoap/wsdl/element.rb', line 17 def singular? @singular == true end |
#type ⇒ Object
13 14 15 |
# File 'lib/lolsoap/wsdl/element.rb', line 13 def type type_reference.type end |