Sha256: 4ffc4681f987c9d9e4862d1d966394076cccf9f5e3e56f9ed62b6f2b47d6b1e7

Contents?: true

Size: 424 Bytes

Versions: 3

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

module Alma
  class UserRequest < AlmaRecord
    extend Alma::ApiDefaults

    def self.where_user(user_id, args = {})
      # Default to upper limit
      args[:limit] ||= 100
      response = HTTParty.get(
        "#{users_base_path}/#{user_id}/requests",
        query: args,
        headers: headers,
        timeout: timeout
      )
      Alma::RequestSet.new(response)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alma-0.4.0 lib/alma/user_request.rb
alma-0.3.3 lib/alma/user_request.rb
alma-0.3.2 lib/alma/user_request.rb