lib/clever-ruby/student.rb in clever-ruby-0.0.1 vs lib/clever-ruby/student.rb in clever-ruby-0.0.2
- old
+ new
@@ -1,8 +1,12 @@
module Clever
class Student < APIResource
include Clever::APIOperations::List
+ def optional_attributes
+ [:student_number, :state_id, :location, :gender, :dob, :grade, :frl_status, :race, :hispanic_ethnicity, :email]
+ end
+
def photo
return @values[:photo] if @values.has_key?(:photo)
response = Clever.request(:get, photo_url)
@values[:photo] = response[:data][:data]
end