Sha256: 85df722de7a67911b0d7317413acdf67653beb2f396d5372c81efbe8dd59c686
Contents?: true
Size: 390 Bytes
Versions: 1
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true require_relative "client" require_relative "object" module Mergent class Task < Mergent::Object def self.create(params = {}) object = Client.post("tasks", params) new(object) end %i[name description status request scheduled_for delay cron].each do |name| define_method(name) do self[name] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mergent-0.1.1 | lib/mergent/task.rb |