7864748be9
Each target now implements process directly with its own logic, rather than using processable?/perform_push hooks. The pushable? check is done once in Notification#push before iterating targets. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
292 B
Ruby
18 lines
292 B
Ruby
class Notification::PushTarget
|
|
attr_reader :notification
|
|
|
|
delegate :card, to: :notification
|
|
|
|
def self.process(notification)
|
|
new(notification).process
|
|
end
|
|
|
|
def initialize(notification)
|
|
@notification = notification
|
|
end
|
|
|
|
def process
|
|
raise NotImplementedError
|
|
end
|
|
end
|