Sha256: 47112bbbbb91cc26951d004a5f087290274bdc11320cfa6ea0e3875e6a907e18

Contents?: true

Size: 518 Bytes

Versions: 2

Compression:

Stored size: 518 Bytes

Contents

module ISACA
  module Request
    module ReportConsent
      def self.get(imis_id, options={})
        opts = {
            marketing: 0
        }.merge(options)

        response = ISACA::Request.get do |request|
          request.path = request.path + '/ReportConsent'
          request.params['MarketingConsent'] = opts[:marketing]
          request.params['iMISID'] = imis_id
        end

        ISACA.logger.debug(response) if ISACA.configuration.debug

        response.status == 200
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
isaca-0.1.9 lib/isaca/requests/report_consent.rb
isaca-0.1.8 lib/isaca/requests/report_consent.rb