class Stellar::Members
Attributes
client[R]
Generic Stellar
client used to make requests.
course[R]
The course whose membership is exposed by this client.
Public Class Methods
new(course)
click to toggle source
Creates a Stellar
client scoped to a course's Membership module.
@param [Stellar::Course] the course whose membership info is desired
# File lib/stellar/members.rb, line 20 def initialize(course) @course = course @client = course.client @url = course.navigation['Membership'] page = @client.get_nokogiri @url @navigation = Hash[page.css('#toolBox dd a').map { |link| [link.inner_text.strip, URI.join(page.url, link['href'])] }] end
Public Instance Methods
photos()
click to toggle source
All member photos in this course's Membership module. @return [Stellar::Gradebook::PhotoList] list of member photos for students
# File lib/stellar/members.rb, line 33 def photos @students ||= Stellar::Members::PhotoList.new self end