Class: Jbr::Mock::LineItem
- Defined in:
- lib/jbr/mock/line_item.rb
Overview
A line of a job that reads from Jbr.mock instead of Jobber.
Constant Summary
Constants inherited from LineItem
LineItem::FIELDS, LineItem::PAGE, LineItem::SELECTION
Instance Method Summary collapse
- #amount ⇒ Object
- #description ⇒ Object
-
#id ⇒ Object?
The values the app asked for.
- #name ⇒ Object
- #quantity ⇒ Object
Methods inherited from LineItem
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Jbr::Resource
Instance Method Details
#amount ⇒ Object
14 |
# File 'lib/jbr/mock/line_item.rb', line 14 def amount = @node[:amount] |
#description ⇒ Object
12 |
# File 'lib/jbr/mock/line_item.rb', line 12 def description = @node[:description] |
#id ⇒ Object?
Returns the values the app asked for. The quantity is still read whole,
so an app that mocks 3.0 of a thing sees the 3 a page would show.
6 |
# File 'lib/jbr/mock/line_item.rb', line 6 def id = @node[:id] |
#name ⇒ Object
10 |
# File 'lib/jbr/mock/line_item.rb', line 10 def name = @node[:name] |
#quantity ⇒ Object
8 |
# File 'lib/jbr/mock/line_item.rb', line 8 def quantity = whole @node[:quantity] |