class Clever::Types::SchoolAdmin
Public Class Methods
new(attributes = {}, *, client: nil)
click to toggle source
# File lib/clever/types/school_admin.rb, line 6 def initialize(attributes = {}, *, client: nil) @district_username = attributes.dig('roles', 'staff', 'credentials', 'district_username') @email = attributes['email'] @first_name = attributes['name']['first'] @last_name = attributes['name']['last'] @provider = 'clever' @sis_id = attributes.dig('roles', 'staff', 'sis_id') @uid = attributes['id'] @username = username(client) @role = 'admin' end