Module: Rpush::Client::ActiveModel::Apnsp8::App

Included in:
Rpush::Client::ActiveRecord::Apnsp8::App, Redis::Apnsp8::App
Defined in:
lib/rpush/client/active_model/apnsp8/app.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/rpush/client/active_model/apnsp8/app.rb', line 6

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

Instance Method Details

#service_nameObject



16
17
18
# File 'lib/rpush/client/active_model/apnsp8/app.rb', line 16

def service_name
  'apnsp8'
end