class TelegramNotification::TelegramNotification
Attributes
client[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/telegram_notification/telegram_notification.rb, line 5 def initialize(options = {}) @client = ::TelegramNotification.client end
Public Instance Methods
config()
click to toggle source
# File lib/telegram_notification/telegram_notification.rb, line 13 def config @config ||= ::TelegramNotification.config end
send_message(text)
click to toggle source
# File lib/telegram_notification/telegram_notification.rb, line 9 def send_message(text) client.post(text: text) end