Class: Jbr::Mock::Client

Inherits:
Client show all
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

#property_id

Instance Method Summary collapse

Methods inherited from Client

#create_with, #find_or_create_by, #name

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Jbr::Resource

Instance Method Details

#company_nameObject



11
# File 'lib/jbr/mock/client.rb', line 11

def company_name = @node[:company_name]

#emailObject



13
# File 'lib/jbr/mock/client.rb', line 13

def email = @node[:email]

#first_nameObject



7
# File 'lib/jbr/mock/client.rb', line 7

def first_name = @node[:first_name]

#idObject?

Returns the values the app asked for.

Returns:

  • (Object, nil)

    the values the app asked for.



5
# File 'lib/jbr/mock/client.rb', line 5

def id = @node[:id]

#last_nameObject



9
# File 'lib/jbr/mock/client.rb', line 9

def last_name = @node[:last_name]

#phoneObject



15
# File 'lib/jbr/mock/client.rb', line 15

def phone = @node[:phone]