Class: Ronin::Author

Inherits:
Object
  • Object
show all
Includes:
Model, Model::HasName
Defined in:
lib/ronin/author.rb

Overview

Represents an author and any information about them or the organization which they belong to.

Instance Method Summary collapse

Methods included from Model::HasName

included

Methods included from Model

included

Instance Method Details

#to_sString

Converts the author to a String.

Returns:

  • (String)

    The name of the author.



59
60
61
62
63
64
65
# File 'lib/ronin/author.rb', line 59

def to_s
  if self.email
    "#{self.name} <#{self.email}>"
  else
    super
  end
end