Sha256: 529b9b7d2b22fda444ca035bd3ec2f16cbb6f634b9c315c88c05e2c051b33c50
Contents?: true
Size: 414 Bytes
Versions: 4
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true require_relative "client" require_relative "object" module Mergent class Task < Mergent::Object ATTRS = %i[name description status request scheduled_for created_at].freeze ATTRS.each do |name| define_method(name) do @_data[name] end end def self.create(params = {}) data = Client.post("tasks", params) new(data) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mergent-0.2.2 | lib/mergent/task.rb |
mergent-0.2.1 | lib/mergent/task.rb |
mergent-0.2.0 | lib/mergent/task.rb |
mergent-0.1.2 | lib/mergent/task.rb |