Class: Jbr::Account
Overview
The Jobber account a set of credentials belongs to.
Direct Known Subclasses
Constant Summary collapse
- FIND =
The query that reads the account behind the current credentials.
<<~GRAPHQL { account { id name phone } } GRAPHQL
Instance Method Summary collapse
-
#id ⇒ String?
The account ID.
-
#name ⇒ String?
What the business calls itself.
-
#phone ⇒ String?
The number the business is reached on, as Jobber holds it.
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Jbr::Resource
Instance Method Details
#id ⇒ String?
Returns the account ID.
10 |
# File 'lib/jbr/account.rb', line 10 def id = node['id'] |
#name ⇒ String?
Returns what the business calls itself.
13 |
# File 'lib/jbr/account.rb', line 13 def name = node['name'] |
#phone ⇒ String?
Returns the number the business is reached on, as Jobber holds it.
16 |
# File 'lib/jbr/account.rb', line 16 def phone = node['phone'] |