Class: Notifaction::Type::Linux

Inherits:
Base
  • Object
show all
Defined in:
lib/notifaction/types/linux.rb

Constant Summary

Constants inherited from Base

Base::OK, Base::QUIT, Base::QUIT_SOFT

Instance Attribute Summary

Attributes inherited from Base

#user_conf

Instance Method Summary collapse

Methods inherited from Base

#fire_hooks, #initialize, #ok, #quit, #quit_ok, #quit_soft

Constructor Details

This class inherits a constructor from Notifaction::Type::Base

Instance Method Details

#bubble(message, title) ⇒ Object

Since:

  • 0.1.0



6
7
8
9
10
11
# File 'lib/notifaction/types/linux.rb', line 6

def bubble(message, title)
  @response = `notify-send "#{title}" "#{message}"`
  $?.exitstatus == 0

  fire_hooks({ method: __method__, message: message, title: title })
end

Since:

  • 0.1.0



15
16
17
# File 'lib/notifaction/types/linux.rb', line 15

def modal(message, title)
  nil
end