lib/clever-ruby/student.rb in clever-ruby-0.6.2 vs lib/clever-ruby/student.rb in clever-ruby-0.7.0
- old
+ new
@@ -1,9 +1,21 @@
module Clever
# Student resource
class Student < APIResource
include Clever::APIOperations::List
- @linked_resources = [:teachers, :sections, :schools, :districts, :events, :contacts]
+ @linked_resources = [:school, :district, :sections, :teachers, :events]
+
+ # Get contacts for the current student
+ # @todo This is not implemented!
+ # @api public
+ # @raise [NotImplementedError]
+ # @return [Object]
+ # @example
+ # student = student.retrieve id
+ # contacts = student.admins
+ def contacts
+ fail NotImplementedError, 'contacts nested resource not implemented yet.'
+ end
# Optional attributes
# @see Clever::CleverObject.optional_attributes
# @api private
# @return [Array]