A ruby library from simple notification capablities for Microsoft Teams.
Install the gem and add to the application's Gemfile by executing:
bundle add ms_teams_notificationIf bundler is not being used to manage dependencies, install the gem by executing:
gem install ms_teams_notificationYou can build your notifer passing the webhook url and title:
opts = { ms_teams_webhook: "", notification_subject: "" }
notifier = MsTeamsNotification::Base.new **optionsOptionally you can formlate a rich message with formatter.
The formatter accepts a hash of additional fields that will be appended as list after the message.
message = MsTeamsNotification::Formatter.formlate_meessage "Message", { time: Time.now }Then, fire it:
notifier.send_ms_teams_notice messageThe gem specs can be found at RubyDocs.
Bug reports and pull requests are welcome on GitHub.
The gem is available as open source under the terms of the MIT License.