You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: notification.rb
    path of file: ./repos/rpush/lib/rpush/client/active_model/apns
    
    the code of the file until where you have to start completion: module Rpush
  module Client
    
    
          def priority_for_frame
            # It is an error to use APNS_PRIORITY_IMMEDIATE for a notification that only contains content-available.
            if as_json['aps'].try(:keys) == ['content-available']
              APNS_PRIORITY_CONSERVE_POWER
            else
              priority || APNS_PRIORITY_IMMEDIATE
            end