Sha256: 0cf1789196b2bb742cb10ae68b4c2ec1b2c4236254119c12d881d98639a16bfa

Contents?: true

Size: 601 Bytes

Versions: 27

Compression:

Stored size: 601 Bytes

Contents

module Rpush
  module Client
    module ActiveModel
      module Apnsp8
        module App
          def self.included(base)
            base.instance_eval do
              validates :environment, presence: true, inclusion: { in: %w(development production sandbox) }
              validates :apn_key, presence: true
              validates :apn_key_id, presence: true
              validates :team_id, presence: true
              validates :bundle_id, presence: true
            end
          end

          def service_name
            'apnsp8'
          end
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
rpush-9.2.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-9.1.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-9.0.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-8.0.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-7.0.1 lib/rpush/client/active_model/apnsp8/app.rb
rpush-7.0.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-6.0.1 lib/rpush/client/active_model/apnsp8/app.rb
rpush-6.0.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-5.4.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-5.3.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-5.2.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-5.1.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-5.0.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-4.2.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-4.1.1 lib/rpush/client/active_model/apnsp8/app.rb
rpush-4.1.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-4.0.1 lib/rpush/client/active_model/apnsp8/app.rb
rpush-4.0.0 lib/rpush/client/active_model/apnsp8/app.rb
rpush-3.3.1 lib/rpush/client/active_model/apnsp8/app.rb
rpush-3.3.0 lib/rpush/client/active_model/apnsp8/app.rb