Class: Trufina::Elements::Name

Inherits:
Object
  • Object
show all
Includes:
HappyMapper, AllowCreationFromHash, EasyElementAccess
Defined in:
lib/elements.rb

Overview

Encapsulates the various name components Trufina accepts

Instance Method Summary collapse

Methods included from EasyElementAccess

#present_and_verified

Methods included from AllowCreationFromHash

#initialize

Instance Method Details

#to_sObject



110
111
112
113
# File 'lib/elements.rb', line 110

def to_s
  name_parts = self.class.elements.map(&:method_name)
  name_parts.collect {|name_part| self.send(name_part) }.compact.join(' ')
end