Class: Kintone::Command::SpaceThread

Inherits:
Kintone::Command show all
Defined in:
lib/kintone/command/space_thread.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Kintone::Command

#initialize

Constructor Details

This class inherits a constructor from Kintone::Command

Class Method Details

.pathObject



4
5
6
# File 'lib/kintone/command/space_thread.rb', line 4

def self.path
  'space/thread'
end

Instance Method Details

#update(id, name: nil, body: nil) ⇒ Object



8
9
10
11
12
13
# File 'lib/kintone/command/space_thread.rb', line 8

def update(id, name: nil, body: nil)
  request_body = { id: id }
  request_body[:name] = name if name
  request_body[:body] = body if body
  @api.put(@url, request_body)
end