module SchoolLoop::Resources::Roster

Public Instance Methods

get_roster(teacher_id = nil) click to toggle source

Get the roster for all teachers, or limit to a specific teacher

# File lib/school_loop/resources/roster.rb, line 6
def get_roster(teacher_id = nil)
  connection.get do |req|
    req.url "/api/roster"

    if teacher_id
      req.params['teacher_id'] = teacher_id
    end
  end
end