Module: Jbr::Itemized

Included in:
Job
Defined in:
lib/jbr/itemized.rb

Overview

Extends a record Jobber itemizes: a job, whose lines say what the work actually was where the title only says what somebody called it.

Instance Method Summary collapse

Instance Method Details

#line_itemsArray<LineItem>

Returns the lines the record is made of, empty where the query never asked for them — a page costs what it carries, so nothing nested arrives unasked.

Returns:

  • (Array<LineItem>)

    the lines the record is made of, empty where the query never asked for them — a page costs what it carries, so nothing nested arrives unasked.



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

def line_items = LineItem.from @node.dig('lineItems', 'nodes')