Sha256: d89e0e48d8e7f4d6ec96dfc9ea269b9f2a0252500ad64364a1314ff38ec351bf

Contents?: true

Size: 372 Bytes

Versions: 3

Compression:

Stored size: 372 Bytes

Contents

# typed: false
module Researchable
  module FreedcampApi
    class GetUser < Endpoint
      string :user_id, default: 'current'
      # @api private
      def execute
        get_user(user_id)
      end

      #sig do
        #params().returns(
        #)
      #end
      def get_user(task_id)
        session.get("/users/#{task_id}")['data']
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
researchable-freedcamp-api-0.1.8 lib/researchable/freedcamp_api/get_user.rb
researchable-freedcamp-api-0.1.7 lib/researchable/freedcamp_api/get_user.rb
researchable-freedcamp-api-0.1.6 lib/researchable/freedcamp_api/get_user.rb