Sha256: 0903a7c5f28b9741914f157b792303f4d928dfee1e1a9bee29e90c94f0fe3112

Contents?: true

Size: 804 Bytes

Versions: 12

Compression:

Stored size: 804 Bytes

Contents

module Rpush
  module Client
    module Redis
      class App
        include Modis::Model
        self.namespace = 'apps'

        attribute :name, :string
        attribute :environment, :string
        attribute :certificate, :string
        attribute :password, :string
        attribute :connections, :integer, default: 1
        attribute :auth_key, :string
        attribute :client_id, :string
        attribute :client_secret, :string
        attribute :api_key, :string
        attribute :apn_key, :string
        attribute :apn_key_id, :string
        attribute :team_id, :string
        attribute :bundle_id, :string
 
        index :name

        validates :name, presence: true
        validates_numericality_of :connections, greater_than: 0, only_integer: true
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
rpush-4.1.0 lib/rpush/client/redis/app.rb
rpush-4.0.1 lib/rpush/client/redis/app.rb
rpush-4.0.0 lib/rpush/client/redis/app.rb
rpush-3.3.1 lib/rpush/client/redis/app.rb
rpush-3.3.0 lib/rpush/client/redis/app.rb
rpush_extended-3.2.6 lib/rpush/client/redis/app.rb
rpush_extended-3.2.5 lib/rpush/client/redis/app.rb
rpush-3.2.4 lib/rpush/client/redis/app.rb
rpush-3.2.3 lib/rpush/client/redis/app.rb
rpush-3.2.2 lib/rpush/client/redis/app.rb
rpush-3.2.1 lib/rpush/client/redis/app.rb
rpush-3.2.0 lib/rpush/client/redis/app.rb