lib/alma/course.rb in alma-0.4.2 vs lib/alma/course.rb in alma-0.5.0
- old
+ new
@@ -4,10 +4,10 @@
class Course
extend Alma::ApiDefaults
extend Forwardable
def self.all_courses(args: {})
- response = HTTParty.get("#{courses_base_path}/courses",
+ response = Net.get("#{courses_base_path}/courses",
query: args,
headers:,
timeout:)
if response.code == 200
Alma::CourseSet.new(get_body_from(response))