Class: Lines::Author
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Lines::Author
- Defined in:
- app/models/lines/author.rb
Instance Method Summary collapse
-
#first_name ⇒ Object
Returns the first name.
-
#last_name ⇒ Object
Returns the last name.
Instance Method Details
#first_name ⇒ Object
Returns the first name
20 21 22 |
# File 'app/models/lines/author.rb', line 20 def first_name self.name.split(" ").first end |
#last_name ⇒ Object
Returns the last name
25 26 27 |
# File 'app/models/lines/author.rb', line 25 def last_name self.name.split(" ").last end |