Class: EAC::Person::Name::Part

Inherits:
Object
  • Object
show all
Defined in:
lib/eac.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml) ⇒ Part

Returns a new instance of Part.



73
74
75
76
# File 'lib/eac.rb', line 73

def initialize(xml)
  @local_type = xml['localType']
  @text = xml.text
end

Instance Attribute Details

#local_typeObject (readonly)

Returns the value of attribute local_type.



71
72
73
# File 'lib/eac.rb', line 71

def local_type
  @local_type
end

#textObject (readonly)

Returns the value of attribute text.



71
72
73
# File 'lib/eac.rb', line 71

def text
  @text
end