Sha256: 2e125d1d93d859fa8e6dd4eba7598808d909ca724a301a041269b794fb7235e1

Contents?: true

Size: 654 Bytes

Versions: 2

Compression:

Stored size: 654 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

        index :name

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rpush-3.1.1 lib/rpush/client/redis/app.rb
rpush-3.1.0 lib/rpush/client/redis/app.rb