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 Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #description ⇒ Object
- #name ⇒ Object
-
#quantity ⇒ Object?
The values the app asked for.
Methods inherited from LineItem
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Jbr::Resource
Instance Method Details
#description ⇒ Object
10 |
# File 'lib/jbr/mock/line_item.rb', line 10 def description = @node[:description] |
#name ⇒ Object
8 |
# File 'lib/jbr/mock/line_item.rb', line 8 def name = @node[:name] |
#quantity ⇒ 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 quantity = whole @node[:quantity] |