Class: Jbr::Mock::Job
Overview
A job that reads from Jbr.mock instead of Jobber.
Constant Summary
Constants included
from Cliental
Cliental::FIELDS, Cliental::SELECTION
Instance Method Summary
collapse
Methods inherited from Job
#name
Methods included from Properted
selection
Methods inherited from Resource
#initialize
Constructor Details
This class inherits a constructor from Jbr::Resource
Instance Method Details
#client ⇒ Object
21
|
# File 'lib/jbr/mock/job.rb', line 21
def client = Mock::Client.new(node: @node.fetch(:client, {}))
|
#completed_at ⇒ Object
27
|
# File 'lib/jbr/mock/job.rb', line 27
def completed_at = @node[:completed_at]
|
#created_at ⇒ Object
19
|
# File 'lib/jbr/mock/job.rb', line 19
def created_at = @node[:created_at]
|
#id ⇒ Object?
Returns the values the app asked for.
5
|
# File 'lib/jbr/mock/job.rb', line 5
def id = @node[:id]
|
#instructions ⇒ Object
9
|
# File 'lib/jbr/mock/job.rb', line 9
def instructions = @node[:instructions]
|
#property ⇒ Object
23
|
# File 'lib/jbr/mock/job.rb', line 23
def property = Mock::Property.new(node: @node.fetch(:property, {}))
|
#quote_id ⇒ Object
13
|
# File 'lib/jbr/mock/job.rb', line 13
def quote_id = @node[:quote_id]
|
#quote_total ⇒ Object
17
|
# File 'lib/jbr/mock/job.rb', line 17
def quote_total = @node[:quote_total]
|
#scheduled_at ⇒ Object
25
|
# File 'lib/jbr/mock/job.rb', line 25
def scheduled_at = @node[:scheduled_at]
|
#status ⇒ Object
11
|
# File 'lib/jbr/mock/job.rb', line 11
def status = @node[:status]
|
#title ⇒ Object
7
|
# File 'lib/jbr/mock/job.rb', line 7
def title = @node[:title]
|
#total ⇒ Object
15
|
# File 'lib/jbr/mock/job.rb', line 15
def total = @node[:total]
|