Method: Alma::Fine.where_user
- Defined in:
- lib/alma/fine.rb
.where_user(user_id, args = {}) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/alma/fine.rb', line 7 def self.where_user(user_id, args = {}) response = Net.get("#{users_base_path}/#{user_id}/fees", query: args, headers:, timeout:) if response.code == 200 Alma::FineSet.new(response) else raise StandardError, get_body_from(response) end end |