Module: ChatWork::Task
- Defined in:
 - lib/chatwork/task.rb
 
Class Method Summary collapse
- 
  
    
      .create(room_id:, body:, to_ids:, limit: nil, limit_type: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash 
    
    
  
  
  
  
  
  
  
  
  
    
Add a new task to the chat.
 - 
  
    
      .find(room_id:, task_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash 
    
    
  
  
  
  
  
  
  
  
  
    
Get information about the specified task.
 - 
  
    
      .get(room_id:, account_id:, assigned_by_account_id: nil, status: nil) {|response_body, response_header| ... } ⇒ Array<Hashie::Mash> 
    
    
  
  
  
  
  
  
  
  
  
    
Get the list of tasks associated with the specified chat.
 - 
  
    
      .update_status(room_id:, task_id:, body:) {|response_body, response_header| ... } ⇒ Hashie::Mash 
    
    
  
  
  
  
  
  
  
  
  
    
Update task completion status.
 
Class Method Details
.create(room_id:, body:, to_ids:, limit: nil, limit_type: nil) {|response_body, response_header| ... } ⇒ Hashie::Mash
Add a new task to the chat
      67 68 69  | 
    
      # File 'lib/chatwork/task.rb', line 67 def self.create(room_id:, body:, to_ids:, limit: nil, limit_type: nil, &block) ChatWork.client.create_task(room_id: room_id, body: body, to_ids: to_ids, limit: limit, limit_type: limit_type, &block) end  | 
  
.find(room_id:, task_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get information about the specified task
      104 105 106  | 
    
      # File 'lib/chatwork/task.rb', line 104 def self.find(room_id:, task_id:, &block) ChatWork.client.find_task(room_id: room_id, task_id: task_id, &block) end  | 
  
.get(room_id:, account_id:, assigned_by_account_id: nil, status: nil) {|response_body, response_header| ... } ⇒ Array<Hashie::Mash>
Get the list of tasks associated with the specified chat
(*This method returns up to 100 entries. We are planning to implement pagination to support larger number of data retrieval)
      42 43 44  | 
    
      # File 'lib/chatwork/task.rb', line 42 def self.get(room_id:, account_id:, assigned_by_account_id: nil, status: nil, &block) ChatWork.client.get_tasks(room_id: room_id, account_id: account_id, assigned_by_account_id: assigned_by_account_id, status: status, &block) end  | 
  
.update_status(room_id:, task_id:, body:) {|response_body, response_header| ... } ⇒ Hashie::Mash
Update task completion status
      127 128 129  | 
    
      # File 'lib/chatwork/task.rb', line 127 def self.update_status(room_id:, task_id:, body:, &block) ChatWork.client.update_task_status(room_id: room_id, task_id: task_id, body: body, &block) end  |