Class: Jbr::Resource
- Inherits:
-
Object
- Object
- Jbr::Resource
- Defined in:
- lib/jbr/resource.rb
Overview
What every Jobber resource shares: the credentials it is read or written through.
Instance Attribute Summary collapse
-
#id ⇒ String?
readonly
The Jobber ID, once the resource has been read or created.
Instance Method Summary collapse
-
#initialize(oauth:) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(oauth:) ⇒ Resource
Returns a new instance of Resource.
5 6 7 |
# File 'lib/jbr/resource.rb', line 5 def initialize(oauth:) @oauth = oauth end |
Instance Attribute Details
#id ⇒ String? (readonly)
Returns the Jobber ID, once the resource has been read or created.
10 11 12 |
# File 'lib/jbr/resource.rb', line 10 def id @id end |