Class: TrakFlow::Mcp::Resources::LabelList

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/trak_flow/mcp/resources/label_list.rb

Instance Method Summary collapse

Methods inherited from BaseResource

with_database

Instance Method Details

#contentObject



12
13
14
15
16
17
# File 'lib/trak_flow/mcp/resources/label_list.rb', line 12

def content
  self.class.with_database do |db|
    labels = db.all_labels
    Oj.dump(labels, mode: :compat, indent: 2)
  end
end