class Todo

Overview

Todo Class

Represents a todo item.

Properties

Example Usage

todo = Todo.new(1, "Buy groceries", false) puts todo.id # Output: 1 puts todo.title # Output: "Buy groceries" puts todo.completed # Output: false

Public Methods

Defined in:

domain/models/todo.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, title : String, completed : Bool) #

[View source]

Instance Method Detail

def completed=(completed : Bool) #

[View source]
def completed? : Bool #

[View source]
def id : String #

[View source]
def id=(id : String) #

[View source]
def title : String #

[View source]
def title=(title : String) #

[View source]