Class: Jbr::Mock::Client
- Defined in:
- lib/jbr/mock/client.rb
Overview
A client that reads from Jbr.mock instead of Jobber.
Constant Summary
Constants inherited from Client
Client::CREATE, Client::LOOKUP
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
- #company_name ⇒ Object
- #email ⇒ Object
- #first_name ⇒ Object
-
#id ⇒ Object?
The values the app asked for.
- #last_name ⇒ Object
- #phone ⇒ Object
Methods inherited from Client
#create_with, #find_or_create_by, #name
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Jbr::Resource
Instance Method Details
#company_name ⇒ Object
11 |
# File 'lib/jbr/mock/client.rb', line 11 def company_name = @node[:company_name] |
#email ⇒ Object
13 |
# File 'lib/jbr/mock/client.rb', line 13 def email = @node[:email] |
#first_name ⇒ Object
7 |
# File 'lib/jbr/mock/client.rb', line 7 def first_name = @node[:first_name] |
#id ⇒ Object?
Returns the values the app asked for.
5 |
# File 'lib/jbr/mock/client.rb', line 5 def id = @node[:id] |
#last_name ⇒ Object
9 |
# File 'lib/jbr/mock/client.rb', line 9 def last_name = @node[:last_name] |
#phone ⇒ Object
15 |
# File 'lib/jbr/mock/client.rb', line 15 def phone = @node[:phone] |