module BulkgateSmsGatewayContract::AirbrakeNotify

Public Class Methods

send_sms(number:, country:, body:, sender_name: nil) click to toggle source
# File lib/bulkgate_sms_gateway_contract/airbrake_notify.rb, line 3
def self.send_sms(number:, country:, body:, sender_name: nil)
  BulkgateSmsGatewayContract::FakeContractCommonalities
    .raise_when_invalid(country: country, body: body, number: number)

  msg = "BulkgateSmsGatewayContract: login_code #{code} for #{country} #{number}"
  msg += " | SENDER #{sender_name}" if sender_name
  Airbrake.notify(msg)
end