Sha256: 104e970b5116f42663c4f441be37c03415c9df70258b4d247e399e3463782c0e

Contents?: true

Size: 949 Bytes

Versions: 8

Compression:

Stored size: 949 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/teardown_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

  def self.teardown_device(device)
    PushToSNS::TeardownPushNotification.new(device).perform
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
push_to_sns-0.6.0 lib/push_to_sns.rb
push_to_sns-0.5.0 lib/push_to_sns.rb
push_to_sns-0.4.1 lib/push_to_sns.rb
push_to_sns-0.4.0 lib/push_to_sns.rb
push_to_sns-0.3.3 lib/push_to_sns.rb
push_to_sns-0.3.2 lib/push_to_sns.rb
push_to_sns-0.3.1 lib/push_to_sns.rb
push_to_sns-0.3.0 lib/push_to_sns.rb