Sha256: 049c562f18c5efc1dc329d1fdefd63ced51072f035ad1138378e874d2a3d10a4

Contents?: true

Size: 423 Bytes

Versions: 8

Compression:

Stored size: 423 Bytes

Contents

module PushToSNS
  class TeardownPushNotification
    def initialize(device, configuration = PushToSNS.configuration)
      self.device = device
      self.configuration = configuration
    end

    def perform
      endpoint = configuration.apply(:read_endpoint_arn, device)
      AWS.sns.client.delete_endpoint(endpoint_arn: endpoint) if endpoint
    end

    private

    attr_accessor :device, :configuration
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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