Sha256: 21d9b1b21653a7f3b19a81e9ec90c123e54080cbe199f876fe806738aaa197ba

Contents?: true

Size: 787 Bytes

Versions: 3

Compression:

Stored size: 787 Bytes

Contents

require "json"
require "deep_merge/rails_compat"
require_relative "./push_to_sns/version"
require_relative "./push_to_sns/messages"
require_relative "./push_to_sns/configuration"
require_relative "./push_to_sns/setup_push_notification"
require_relative "./push_to_sns/push_notifier"
require_relative "./push_to_sns/send_push_notification"
require_relative "./push_to_sns/basic_push_notification"
require_relative "./push_to_sns/ios_push_notification"
require_relative "./push_to_sns/android_push_notification"

module PushToSNS
  def self.configure(&block)
    configuration.instance_eval(&block)
  end

  def self.configuration
    @configuration ||= PushToSNS::Configuration.new
  end

  def self.setup_device(device)
    PushToSNS::SetupPushNotification.new(device).perform
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
push_to_sns-0.2.0 lib/push_to_sns.rb
push_to_sns-0.1.1 lib/push_to_sns.rb
push_to_sns-0.1.0 lib/push_to_sns.rb