Class: WsdlMapper::Dom::TypeBase
- Inherits:
-
Object
- Object
- WsdlMapper::Dom::TypeBase
- Defined in:
- lib/wsdl_mapper/dom/type_base.rb
Direct Known Subclasses
Attribute::Ref, BuiltinType, ComplexType, EnumerationValue, Property::Ref, SimpleType, SoapEncodingType
Instance Attribute Summary collapse
-
#documentation ⇒ Object
Returns the value of attribute documentation.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name) ⇒ TypeBase
constructor
A new instance of TypeBase.
Constructor Details
#initialize(name) ⇒ TypeBase
Returns a new instance of TypeBase.
9 10 11 12 |
# File 'lib/wsdl_mapper/dom/type_base.rb', line 9 def initialize(name) @name = name @documentation = Documentation.new end |
Instance Attribute Details
#documentation ⇒ Object
Returns the value of attribute documentation.
7 8 9 |
# File 'lib/wsdl_mapper/dom/type_base.rb', line 7 def documentation @documentation end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/wsdl_mapper/dom/type_base.rb', line 6 def name @name end |
Class Method Details
.to_proc ⇒ Object
26 27 28 |
# File 'lib/wsdl_mapper/dom/type_base.rb', line 26 def self.to_proc -> (obj) { obj.is_a? self } end |
Instance Method Details
#==(other) ⇒ Object
18 19 20 |
# File 'lib/wsdl_mapper/dom/type_base.rb', line 18 def ==(other) eql? other end |
#eql?(other) ⇒ Boolean
22 23 24 |
# File 'lib/wsdl_mapper/dom/type_base.rb', line 22 def eql?(other) name ? (self.class == other.class && name == other.name) : super end |
#hash ⇒ Object
14 15 16 |
# File 'lib/wsdl_mapper/dom/type_base.rb', line 14 def hash name ? [self.class, name].hash : super end |