Class: EAC::Person::Name
- Inherits:
-
Object
- Object
- EAC::Person::Name
- Defined in:
- lib/eac.rb
Defined Under Namespace
Classes: Part
Instance Attribute Summary collapse
-
#parts ⇒ Object
readonly
Returns the value of attribute parts.
Instance Method Summary collapse
-
#initialize(xml) ⇒ Name
constructor
A new instance of Name.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#parts ⇒ Object (readonly)
Returns the value of attribute parts.
89 90 91 |
# File 'lib/eac.rb', line 89 def parts @parts end |
Instance Method Details
#to_s ⇒ Object
99 100 101 |
# File 'lib/eac.rb', line 99 def to_s @parts.map(&:text).join(', ') end |