Sha256: 48a312e7402b51f820f13d68c92044c2150449f09eef9b2ad6802612cff2fbb8

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 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::V1.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

1 entries across 1 versions & 1 rubygems

Version Path
notifiable-sender-0.1.0 bin/console