Module: Rpush::Client::ActiveModel::Gcm::App

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
# File 'lib/rpush/client/active_model/gcm/app.rb', line 6

def self.included(base)
  base.instance_eval do
    validates :auth_key, presence: true
  end
end

Instance Method Details

#service_nameObject



12
13
14
# File 'lib/rpush/client/active_model/gcm/app.rb', line 12

def service_name
  'gcm'
end