class ConsoleTodoInputPort

Defined in:

adapters/console_input.cr

Constructors

Instance Method Summary

Instance methods inherited from class TodoInputPort

all_todos : Array(Todo) all_todos, create_todo(title : String) : Todo create_todo, get_todo_by_id(id : String) : Todo | Nil get_todo_by_id, mark_todo_as_completed(todo : Todo) : Todo mark_todo_as_completed

Constructor Detail

def self.new(service : TodoService) #

[View source]

Instance Method Detail

def all_todos : Array(Todo) #

[View source]
def create_todo(title : String) : Todo #

[View source]
def get_todo_by_id(id : String) : Todo | Nil #

[View source]
def mark_todo_as_completed(todo : Todo) : Todo #

[View source]
def service : TodoService #

[View source]
def service=(service : TodoService) #

[View source]