Sha256: b9c0128fb0df8cafbb77e8b002659cf26abe1b03731d91de2435fe2bbf51b1d1

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

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

        data = JSON.parse(JSON.parse(response.body, quirks_mode: true))
        ISACA.logger.debug(data) if ISACA.configuration.debug

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

Version data entries

3 entries across 3 versions & 1 rubygems

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