module PagerDuty::Client::Abilities
This describes your account's abilities by feature name, like teams
.
An ability may be available to your account based on things like your pricing plan or account state.
@see v2.developer.pagerduty.com/v2/page/api-reference#!/Abilities
Public Instance Methods
abilities(options = {})
click to toggle source
List all of your account's abilities, by name. @return [Array<Sawyer::Resource>] An array of strings representing abilities @see v2.developer.pagerduty.com/v2/page/api-reference#!/Abilities/get_abilities
# File lib/pager_duty/client/abilities.rb, line 12 def abilities(options = {}) response = get "/abilities", options response[:abilities] end
Also aliased as: list_abilities
ability(ability, options = {})
click to toggle source
Test whether your account has a given ability.
@param ability [String] Ability to check @return [Boolean] Whether your account has the ability @see v2.developer.pagerduty.com/v2/page/api-reference#!/Abilities/get_abilities_id
# File lib/pager_duty/client/abilities.rb, line 23 def ability(ability, options = {}) boolean_from_response :get, "/abilities/#{ability}", options end
Also aliased as: has_ability