Class: Jbr::Mock::Account

Inherits:
Account show all
Defined in:
lib/jbr/mock/account.rb

Overview

The account that reads from Jbr.mock instead of Jobber.

Constant Summary

Constants inherited from Account

Account::FIND

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Jbr::Resource

Instance Method Details

#idObject?

Returns the values the app asked for, and 'account-01' for an ID it did not.

Returns:

  • (Object, nil)

    the values the app asked for, and 'account-01' for an ID it did not.



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

def id = node.fetch :id, 'account-01'

#nameObject



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

def name = node[:name]

#phoneObject



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

def phone = node[:phone]