You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
320 B

require "uuid"
class Task
JSON.mapping({
id: String,
author: Int32,
title: String,
description: String,
column: String,
assigned_to: Int32?,
color: {
type: String,
default: "dark"
}
})
def initialize(@title, @author, @description, @column)
@id = UUID.random.to_s
@color = "dark"
end
end