Class: LucidIntercom::UpdateUser
- Inherits:
-
Object
- Object
- LucidIntercom::UpdateUser
- Extended by:
- Dry::Initializer
- Defined in:
- lib/lucid_intercom/update_user.rb
Instance Method Summary collapse
-
#call(event) ⇒ Object
Create or update user identified by event attributes.
- #post_request ⇒ PostRequest
Instance Method Details
#call(event) ⇒ Object
Create or update user identified by event attributes. This is only used in the context of events.
23 24 25 26 27 |
# File 'lib/lucid_intercom/update_user.rb', line 23 def call(event) data = data(event) post_request.('users', data).assert! end |
#post_request ⇒ PostRequest
12 |
# File 'lib/lucid_intercom/update_user.rb', line 12 option :post_request, default: proc { PostRequest.new } |