Class: Jbr::Event
- Inherits:
-
Object
- Object
- Jbr::Event
- Defined in:
- lib/jbr/event.rb
Constant Summary collapse
- SIGNATURE_HEADER =
'X-Jobber-Hmac-SHA256'
Instance Method Summary collapse
-
#account_id ⇒ String
Unique identifier of the event account.
-
#initialize(params = {}) ⇒ Event
constructor
A new instance of Event.
-
#item_id ⇒ String
Unique identifier of the event target.
Constructor Details
#initialize(params = {}) ⇒ Event
Returns a new instance of Event.
7 8 9 |
# File 'lib/jbr/event.rb', line 7 def initialize(params = {}) @params = params end |
Instance Method Details
#account_id ⇒ String
Returns unique identifier of the event account.
15 |
# File 'lib/jbr/event.rb', line 15 def account_id = @params.dig :data, :webHookEvent, :accountId |
#item_id ⇒ String
Returns unique identifier of the event target.
12 |
# File 'lib/jbr/event.rb', line 12 def item_id = @params.dig :data, :webHookEvent, :itemId |