Class: EAC::Person::Name::Part
- Inherits:
-
Object
- Object
- EAC::Person::Name::Part
- Defined in:
- lib/eac.rb
Instance Attribute Summary collapse
-
#local_type ⇒ Object
readonly
Returns the value of attribute local_type.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(xml) ⇒ Part
constructor
A new instance of Part.
Constructor Details
#initialize(xml) ⇒ Part
Returns a new instance of Part.
77 78 79 80 |
# File 'lib/eac.rb', line 77 def initialize(xml) @local_type = xml['localType'] @text = xml.text end |
Instance Attribute Details
#local_type ⇒ Object (readonly)
Returns the value of attribute local_type.
75 76 77 |
# File 'lib/eac.rb', line 75 def local_type @local_type end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
75 76 77 |
# File 'lib/eac.rb', line 75 def text @text end |