Sha256: b907f0b4caed0a163bf0d1c445113396f3d4dfebdf043106e942f9d0272da00a

Contents?: true

Size: 473 Bytes

Versions: 10

Compression:

Stored size: 473 Bytes

Contents

module J7W1
  module MockPushClient

    class << self
      def push_histories
        @push_histories ||= []
      end

      def push(endpoint_arn, platform, options)
        push_histories.push(options.merge(device: {platform: platform, endpoint_arn: endpoint_arn}))
      end

      def create_device_endpoint(device_identifier, platform, options = {})
        [device_identifier, J7W1::Util.normalize_platform(platform)].compact.join('@')
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
j7w1-0.0.27.2 lib/j7w1/mock_push_client.rb
j7w1-0.0.27.1 lib/j7w1/mock_push_client.rb
j7w1-0.0.27 lib/j7w1/mock_push_client.rb
j7w1-0.0.26 lib/j7w1/mock_push_client.rb
j7w1-0.0.25 lib/j7w1/mock_push_client.rb
j7w1-0.0.24 lib/j7w1/mock_push_client.rb
j7w1-0.0.23 lib/j7w1/mock_push_client.rb
j7w1-0.0.22 lib/j7w1/mock_push_client.rb
j7w1-0.0.21 lib/j7w1/mock_push_client.rb
j7w1-0.0.20 lib/j7w1/mock_push_client.rb