Sha256: 1197c2acfb9172157031eedbb70d9d1994e760c836aac1640013c2b0ca31ccce

Contents?: true

Size: 373 Bytes

Versions: 5

Compression:

Stored size: 373 Bytes

Contents

module Mettlr
  class Assessment < Base
    def self.find_all
      Mettlr::Connection.get("/v1/assessments").body.assessments.map {|x| new(x)}
    end
    def self.find(id)
      new(Mettlr::Connection.get("/v1/assessments/#{id}").body.assessment)
    end
    def schedules
      Mettlr::Connection.get("/v1/assessments/#{@id}/schedules").body.schedules
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mettlr-0.1.4 lib/mettlr/models/assessment.rb
mettlr-0.1.3 lib/mettlr/models/assessment.rb
mettlr-0.1.2 lib/mettlr/models/assessment.rb
mettlr-0.1.1 lib/mettlr/models/assessment.rb
mettlr-0.1.0 lib/mettlr/models/assessment.rb