class Alma::Fine

Public Class Methods

where_user(user_id, args = {}) click to toggle source
# File lib/alma/fine.rb, line 7
def self.where_user(user_id, args = {})
  response = HTTParty.get("#{users_base_path}/#{user_id}/fees", query: args, headers: headers, timeout: timeout)
  if response.code == 200
    Alma::FineSet.new(response)
  else
    raise StandardError, get_body_from(response)
  end
end