Module: Rpush::Client::ActiveModel::Pushy::App

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



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

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

Instance Method Details

#service_nameObject



13
14
15
# File 'lib/rpush/client/active_model/pushy/app.rb', line 13

def service_name
  'pushy'
end