Sha256: de2dfab45c198bd18303c4f065f4f6424f05d3928337354c6b13c7afee0880c0

Contents?: true

Size: 676 Bytes

Versions: 13

Compression:

Stored size: 676 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/setup"
require "notifiable/sender"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

# convenience method
def send_notification(recipient_email_address, message, access_id = ENV['access_id'], secret_key = ENV['secret_key'])
  sender = Notifiable::Sender.new 'https://notifiable-staging.herokuapp.com', access_id, secret_key: secret_key
  sender.send_notification_to_user(recipient_email_address, message: message)
end

require "irb"
IRB.start

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
notifiable-sender-0.9.0 bin/console
notifiable-sender-0.8.0 bin/console
notifiable-sender-0.7.1 bin/console
notifiable-sender-0.7.0 bin/console
notifiable-sender-0.6.0 bin/console
notifiable-sender-0.5.0 bin/console
notifiable-sender-0.4.0 bin/console
notifiable-sender-0.3.3 bin/console
notifiable-sender-0.3.2 bin/console
notifiable-sender-0.3.1 bin/console
notifiable-sender-0.3.0 bin/console
notifiable-sender-0.2.1 bin/console
notifiable-sender-0.2.0 bin/console