Class: Pinnable::CapturePin
- Inherits:
-
Object
- Object
- Pinnable::CapturePin
- Defined in:
- app/services/pinnable/capture_pin.rb
Overview
Turns a capture payload into a persisted Pin, stamping the author’s display label (resolved through the host’s ‘user_label`) so the inbox never needs the host’s User.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(author:, tenant:, params:) ⇒ CapturePin
constructor
A new instance of CapturePin.
Constructor Details
#initialize(author:, tenant:, params:) ⇒ CapturePin
Returns a new instance of CapturePin.
5 6 7 8 9 |
# File 'app/services/pinnable/capture_pin.rb', line 5 def initialize(author:, tenant:, params:) @author = @tenant = tenant @params = params end |