Sha256: d3eb4fba2b8e6253f6738be63bb17e7c73e18f67d9158e495d3a19ec9ecc277c

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

require_relative 'site'

module CodeBadges
  # Service object class that returns all courses
  class GetCodecademyCourses
    def self.call
      CademySite.new do |site|
        site.goto CademySite::MAIN_URL
        @courses = site.extract_main_courses
      end

      @courses
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codebadges-3.0.0 lib/codebadges/courses.rb