Class: XmlConv::Model::Name

Inherits:
Object
  • Object
show all
Defined in:
lib/xmlconv/model/name.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#firstObject

Returns the value of attribute first.



7
8
9
# File 'lib/xmlconv/model/name.rb', line 7

def first
  @first
end

#lastObject

Returns the value of attribute last.



7
8
9
# File 'lib/xmlconv/model/name.rb', line 7

def last
  @last
end

#textObject

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_sObject



17
18
19
# File 'lib/xmlconv/model/name.rb', line 17

def to_s
	[@first, @text, @last].compact.join(' ')
end