Class: Lines::Author

Inherits:
ApplicationRecord show all
Defined in:
app/models/lines/author.rb

Instance Method Summary collapse

Instance Method Details

#first_nameObject

Returns the first name


20
21
22
# File 'app/models/lines/author.rb', line 20

def first_name
	self.name.split(" ").first
end

#last_nameObject

Returns the last name


25
26
27
# File 'app/models/lines/author.rb', line 25

def last_name
	self.name.split(" ").last
end