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_extended-3.2.6 lib/rpush/client/active_model/wns/app.rb
rpush_extended-3.2.5 lib/rpush/client/active_model/wns/app.rb
rpush-3.2.4 lib/rpush/client/active_model/wns/app.rb
rpush-3.2.3 lib/rpush/client/active_model/wns/app.rb
rpush-3.2.2 lib/rpush/client/active_model/wns/app.rb
rpush-3.2.1 lib/rpush/client/active_model/wns/app.rb
rpush-3.2.0 lib/rpush/client/active_model/wns/app.rb
rpush-3.1.1 lib/rpush/client/active_model/wns/app.rb
rpush-3.1.0 lib/rpush/client/active_model/wns/app.rb
rpush-3.0.2 lib/rpush/client/active_model/wns/app.rb
rpush-3.0.1 lib/rpush/client/active_model/wns/app.rb
rpush-3.0.0 lib/rpush/client/active_model/wns/app.rb
rpush-3.0.0.rc1 lib/rpush/client/active_model/wns/app.rb
rpush-2.7.0-java lib/rpush/client/active_model/wns/app.rb
rpush-2.7.0 lib/rpush/client/active_model/wns/app.rb
rpush-2.6.0-java lib/rpush/client/active_model/wns/app.rb
rpush-2.6.0 lib/rpush/client/active_model/wns/app.rb
rpush-2.5.0 lib/rpush/client/active_model/wns/app.rb