Sha256: c1afce857adff29a6b027e7f1e0136d3f5059ce25b8588e68f840d299ed130ff

Contents?: true

Size: 483 Bytes

Versions: 38

Compression:

Stored size: 483 Bytes

Contents

module Rpush
  module Client
    module ActiveModel
      module Wns
        module App
          def self.included(base)
            base.instance_eval do
              validates :client_id, :client_secret, presence: true
            end
          end

          def access_token_expired?
            access_token_expiration.nil? || access_token_expiration < Time.now
          end

          def service_name
            'wns'
          end
        end
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
rpush-9.2.0 lib/rpush/client/active_model/wns/app.rb
rpush-9.1.0 lib/rpush/client/active_model/wns/app.rb
rpush-9.0.0 lib/rpush/client/active_model/wns/app.rb
rpush-8.0.0 lib/rpush/client/active_model/wns/app.rb
rpush-7.0.1 lib/rpush/client/active_model/wns/app.rb
rpush-7.0.0 lib/rpush/client/active_model/wns/app.rb
rpush-6.0.1 lib/rpush/client/active_model/wns/app.rb
rpush-6.0.0 lib/rpush/client/active_model/wns/app.rb
rpush-5.4.0 lib/rpush/client/active_model/wns/app.rb
rpush-5.3.0 lib/rpush/client/active_model/wns/app.rb
rpush-5.2.0 lib/rpush/client/active_model/wns/app.rb
rpush-5.1.0 lib/rpush/client/active_model/wns/app.rb
rpush-5.0.0 lib/rpush/client/active_model/wns/app.rb
rpush-4.2.0 lib/rpush/client/active_model/wns/app.rb
rpush-4.1.1 lib/rpush/client/active_model/wns/app.rb
rpush-4.1.0 lib/rpush/client/active_model/wns/app.rb
rpush-4.0.1 lib/rpush/client/active_model/wns/app.rb
rpush-4.0.0 lib/rpush/client/active_model/wns/app.rb
rpush-3.3.1 lib/rpush/client/active_model/wns/app.rb
rpush-3.3.0 lib/rpush/client/active_model/wns/app.rb