Module: Jbr::Named

Included in:
Job, Visit
Defined in:
lib/jbr/named.rb

Overview

Extends a record Jobber lets go untitled: a visit, a job, anything somebody may have opened without ever typing a name for it.

Instance Method Summary collapse

Instance Method Details

#nameString

Untitled happens often enough, and something has to stand in for it on a list.

Returns:

  • (String)

    the title, or the ID Jobber files the record under. Never empty.



7
# File 'lib/jbr/named.rb', line 7

def name = title.presence || id