Class: Jbr::Mock::Account
- Defined in:
- lib/jbr/mock/account.rb
Overview
The account that reads from Jbr.mock instead of Jobber.
Constant Summary
Constants inherited from Account
Instance Method Summary collapse
-
#id ⇒ Object?
The values the app asked for, and 'account-01' for an ID it did not.
- #name ⇒ Object
- #phone ⇒ Object
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Jbr::Resource
Instance Method Details
#id ⇒ Object?
Returns 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' |
#name ⇒ Object
7 |
# File 'lib/jbr/mock/account.rb', line 7 def name = node[:name] |
#phone ⇒ Object
9 |
# File 'lib/jbr/mock/account.rb', line 9 def phone = node[:phone] |