class Stellar::Courses
Course
search functionality.
Public Class Methods
new(client)
click to toggle source
# File lib/stellar/courses.rb, line 6 def initialize(client) @client = client end
Public Instance Methods
mine()
click to toggle source
My classes. @return [Array] array with one Hash per class; Hashes have :number and
:url keys
# File lib/stellar/courses.rb, line 13 def mine page = @client.get_nokogiri '/atstellar' class_links = page.css('a[href*="/S/course/"]'). map { |link| Stellar::Course.from_link link, @client }.reject(&:nil?) end