Module: Controls::Client::Guidance
- Included in:
- Controls::Client
- Defined in:
- lib/controls/client/guidance.rb
Overview
A module to encapsulate API methods related to guidance
Guidance Methods collapse
-
#guidance(name) ⇒ Hash
A hash representing the matching guidance.
-
#guidance_by_threat(threat) ⇒ Array<Hash>
An array of “guidance hashes”.
Instance Method Details
#guidance(name) ⇒ Hash
Returns a hash representing the matching guidance.
11 12 13 |
# File 'lib/controls/client/guidance.rb', line 11 def guidance(name) get "/guidance/#{name}" end |
#guidance_by_threat(threat) ⇒ Array<Hash>
Returns an array of “guidance hashes”.
17 18 19 |
# File 'lib/controls/client/guidance.rb', line 17 def guidance_by_threat(threat) get "/threats/#{threat}/guidance" end |