Module: Jbr::Properted
Overview
Extends a record that stands at a property: a visit, a job, anything Jobber files somewhere.
Class Method Summary collapse
-
.selection(client: false) ⇒ Object
What to ask for where a record names the place the work happens at.
Instance Method Summary collapse
-
#property ⇒ Property
Where the work happens, and who Jobber holds the place for.
Class Method Details
.selection(client: false) ⇒ Object
What to ask for where a record names the place the work happens at.
8 9 10 11 12 |
# File 'lib/jbr/properted.rb', line 8 def self.selection(client: false) [ 'property { id address {', Property::SELECTION, '}', (Cliental::SELECTION if client), '}', ].compact.join ' ' end |