Sha256: 40d9c6aa626fcf55ea1dd51f1f677764143043752a5a1e9528a9f33a09d9af13

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

module ISACA
  module Request
    module GetUserByID
      def self.get(id)
        response = ISACA::Request.get do |request|
          request.path = request.path + '/GetUserByID'
          request.params['ID'] = id
        end

        data = JSON.parse(response.body)
        ISACA.logger.debug(data) if ISACA.configuration.debug

        response.status == 200 ? ISACA::Model::GetUserByID.new(data) : nil
      end
    end
  end
end



Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
isaca-1.0.0 lib/isaca/requests/get_user_by_id.rb
isaca-0.1.9 lib/isaca/requests/get_user_by_id.rb
isaca-0.1.8 lib/isaca/requests/get_user_by_id.rb
isaca-0.1.7 lib/isaca/requests/get_user_by_id.rb