We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.empty?
This would return true if all keys in the result (other than links and meta) are empty. It will simplify commands where we do this:
links
meta
def execute result = Serializers::Account.resource(inputs) if result[:accounts].empty? status :not_found else result end end
As this will be possible:
def execute result = Serializers::Account.resource(inputs) if result.empty? status :not_found else result end end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This would return true if all keys in the result (other than
links
andmeta
) are empty. It will simplify commands where we do this:As this will be possible:
The text was updated successfully, but these errors were encountered: