Class: ClaudeHooks::TaskCreated

Inherits:
Base
  • Object
show all
Defined in:
lib/claude_hooks/task_created.rb

Constant Summary

Constants inherited from Base

Base::COMMON_INPUT_FIELDS

Instance Attribute Summary

Attributes inherited from Base

#config, #input_data, #logger, #output, #output_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#agent_id, #agent_type, #allow_continue!, #base_dir, #call, #clear_specifics!, #clear_system_message!, #cwd, #effort, #home_claude_dir, #home_path_for, #hook_event_name, #hook_type, #initialize, #log, #output_and_exit, #path_for, #permission_mode, #prevent_continue!, #project_claude_dir, #project_path_for, #prompt_id, #read_transcript, #session_id, #show_output!, #stringify_output, #suppress_output!, #system_message!, #terminal_sequence, #terminal_sequence!, #transcript_path

Constructor Details

This class inherits a constructor from ClaudeHooks::Base

Class Method Details

.hook_typeObject



7
8
9
# File 'lib/claude_hooks/task_created.rb', line 7

def self.hook_type
  'TaskCreated'
end

.input_fieldsObject



11
12
13
# File 'lib/claude_hooks/task_created.rb', line 11

def self.input_fields
  %w[task_id task_subject]
end

Instance Method Details

#task_descriptionObject



23
24
25
# File 'lib/claude_hooks/task_created.rb', line 23

def task_description
  @input_data['task_description'] || @input_data['taskDescription']
end

#task_idObject



15
16
17
# File 'lib/claude_hooks/task_created.rb', line 15

def task_id
  @input_data['task_id'] || @input_data['taskId']
end

#task_subjectObject



19
20
21
# File 'lib/claude_hooks/task_created.rb', line 19

def task_subject
  @input_data['task_subject'] || @input_data['taskSubject']
end

#team_nameObject



31
32
33
# File 'lib/claude_hooks/task_created.rb', line 31

def team_name
  @input_data['team_name'] || @input_data['teamName']
end

#teammate_nameObject



27
28
29
# File 'lib/claude_hooks/task_created.rb', line 27

def teammate_name
  @input_data['teammate_name'] || @input_data['teammateName']
end