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_extended-3.2.6 lib/rpush/client/active_model/apnsp8/app.rb
rpush_extended-3.2.5 lib/rpush/client/active_model/apnsp8/app.rb
rpush-3.2.4 lib/rpush/client/active_model/apnsp8/app.rb
rpush-3.2.3 lib/rpush/client/active_model/apnsp8/app.rb
rpush-3.2.2 lib/rpush/client/active_model/apnsp8/app.rb
rpush-3.2.1 lib/rpush/client/active_model/apnsp8/app.rb
rpush-3.2.0 lib/rpush/client/active_model/apnsp8/app.rb