lib/fire_cloud_client.rb
# check if a user is registered (via access token)
#
# * *return*
#   - +Boolean+ indication of whether or not user is registered
check if a user is registered (via access token)
*return
+Boolean+ indication of whether or not user is registered
check if a user is registered ( via access token ) * return + Boolean + indication of whether or not user is registered
def registered?
    begin
      self.get_registration
      true
    rescue RuntimeError => e
      if e.message.starts_with?('404')
        false
      else
        raise e
      end
    end
  end
def registered? begin self . get_registration true rescue RuntimeError => e if e . message . starts_with? ( '404' ) false else raise e end end end
check if a user is registered (via access token)
 *return
 +Boolean+ indication of whether or not user is registered
check if a user is registered ( via access token ) * return + Boolean + indication of whether or not user is registered
# if user isn't registered, error message should beging with '404 Not Found' # something else happened, so raise exception