Skip to content
New issue

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

Add tag filter to get_all_monitors #58

Merged
merged 4 commits into from
Dec 10, 2014
Merged

Add tag filter to get_all_monitors #58

merged 4 commits into from
Dec 10, 2014

Conversation

wang-arthur
Copy link
Contributor

No description provided.

# returned. If no value is given, then all monitors, regardless of
# scope, will be returned.
if options[:tags]
params[:tags] = options[:tags].join(',')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ruby idiom for a single-line if would be:

params[:tags] = options[:tags].join(',') if options[:tags]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

wang-arthur pushed a commit that referenced this pull request Dec 10, 2014
Add tag filter to get_all_monitors
@wang-arthur wang-arthur merged commit f0e76af into master Dec 10, 2014
@wang-arthur wang-arthur deleted the monitors_by_tag branch December 10, 2014 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants