Class: XmlConv::Model::Name
- Inherits:
-
Object
- Object
- XmlConv::Model::Name
- Defined in:
- lib/xmlconv/model/name.rb
Instance Attribute Summary collapse
-
#first ⇒ Object
Returns the value of attribute first.
-
#last ⇒ Object
Returns the value of attribute last.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#first ⇒ Object
Returns the value of attribute first.
7 8 9 |
# File 'lib/xmlconv/model/name.rb', line 7 def first @first end |
#last ⇒ Object
Returns the value of attribute last.
7 8 9 |
# File 'lib/xmlconv/model/name.rb', line 7 def last @last end |
#text ⇒ Object
Returns the value of attribute text.
7 8 9 |
# File 'lib/xmlconv/model/name.rb', line 7 def text @text end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/xmlconv/model/name.rb', line 17 def to_s [@first, @text, @last].compact.join(' ') end |