Sha256: 5ab2e2a1b9393942d994d9117bc09c1ededc8b603f878eba6ffeb28b0f785abf
Contents?: true
Size: 375 Bytes
Versions: 2
Compression:
Stored size: 375 Bytes
Contents
module Mettlr class Schedule < Base def self.find_all Mettlr::Connection.get("/v1/schedules").body.schedules.map {|x| new(x)} end def self.register_candidate(candidate, access_key) options = {"rd" => {"registrationDetails" => [candidate.to_params]}} Mettlr::Connection.post("/v1/schedules/#{access_key}/candidates", options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mettlr-0.1.1 | lib/mettlr/models/schedule.rb |
mettlr-0.1.0 | lib/mettlr/models/schedule.rb |