Sha256: be37faf54220341d947d8315996bf57113a47366d2138357cfb4b10e5e415cce

Contents?: true

Size: 605 Bytes

Versions: 7

Compression:

Stored size: 605 Bytes

Contents

module Rpush
  module Client
    module Mongoid
      class App
        include ::Mongoid::Document

        field :name, type: String
        field :environment, type: String
        field :certificate, type: String
        field :password, type: String
        field :connections, type: Integer, default: 1
        field :auth_key, type: String
        field :client_id, type: String
        field :client_secret, type: String

        index name: 1

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rpush-2.7.0-java lib/rpush/client/mongoid/app.rb
rpush-2.7.0 lib/rpush/client/mongoid/app.rb
rpush-2.6.0-java lib/rpush/client/mongoid/app.rb
rpush-2.6.0 lib/rpush/client/mongoid/app.rb
rpush-2.5.0 lib/rpush/client/mongoid/app.rb
rpush-2.4.0-java lib/rpush/client/mongoid/app.rb
rpush-2.4.0 lib/rpush/client/mongoid/app.rb