Module: Isaca::Request::ReportConsent

Defined in:
lib/isaca/requests/report_consent.rb

Class Method Summary collapse

Class Method Details

.get(imis_id, options = {}) ⇒ Faraday::Response

Method used to report marketing consent and acceptance of the privacy policy. ISACA assumes that when you send this request that the user has accepted the privacy statement. Plan your user interface with this in mind and only submit this request when you have validated the acceptance of the privacy policy.

Options

marketing

Consent for marketing. Acceptable values are 0 [for NO] and 1 [for YES].

Parameters:

  • imis_id (String)

    The ISACA ID of the user reporting consent

  • options (Hash) (defaults to: {})

    Optional. If not provided, marketing consent will default to NO [0].

Returns:

  • (Faraday::Response)

    Returns a response object



15
16
17
# File 'lib/isaca/requests/report_consent.rb', line 15

def self.get(imis_id, options={})
  self.send_request(imis_id, {marketing: 0}.merge(options))
end