Class: SharedTools::Tools::Notification::NullDriver

Inherits:
BaseDriver
  • Object
show all
Defined in:
lib/shared_tools/tools/notification/null_driver.rb

Overview

Fallback driver for unsupported platforms. All actions return a failure response with a clear error message.

Instance Method Summary collapse

Instance Method Details

#alert(message:, title: nil, buttons: ['OK'], default_button: nil) ⇒ Object



13
14
15
# File 'lib/shared_tools/tools/notification/null_driver.rb', line 13

def alert(message:, title: nil, buttons: ['OK'], default_button: nil)
  unsupported
end

#notify(message:, title: nil, subtitle: nil, sound: nil) ⇒ Object



9
10
11
# File 'lib/shared_tools/tools/notification/null_driver.rb', line 9

def notify(message:, title: nil, subtitle: nil, sound: nil)
  unsupported
end

#speak(text:, voice: nil, rate: nil) ⇒ Object



17
18
19
# File 'lib/shared_tools/tools/notification/null_driver.rb', line 17

def speak(text:, voice: nil, rate: nil)
  unsupported
end