Class: Jbr::Mock::Quote

Inherits:
Quote show all
Defined in:
lib/jbr/mock/quote.rb

Overview

A quote that reads from Jbr.mock instead of Jobber.

Constant Summary

Constants inherited from Quote

Quote::FIND

Instance Attribute Summary

Attributes inherited from Quote

#request_id

Attributes inherited from Resource

#id

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Jbr::Resource

Instance Method Details

#find(_) ⇒ Mock::Quote

Returns itself, carrying the mocked IDs.

Returns:



5
6
7
8
9
10
# File 'lib/jbr/mock/quote.rb', line 5

def find(_)
  @id = Jbr.mock.quote[:id]
  @request_id = Jbr.mock.quote[:request_id]

  self
end