Class: Person

Inherits:
ActiveRecordShared show all
Defined in:
app/models/person.rb

Overview

don’t know exactly

Instance Method Summary collapse

Instance Method Details

#full_nameObject

Returns string containing first and last name



19
20
21
# File 'app/models/person.rb', line 19

def full_name
	"#{first_name} #{last_name}"
end

#to_sObject

Returns full_name



24
25
26
# File 'app/models/person.rb', line 24

def to_s
	full_name
end