Class: Kintone::Command::TemplateSpace

Inherits:
Kintone::Command show all
Defined in:
lib/kintone/command/template_space.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/template_space.rb', line 4

def self.path
  'template/space'
end

Instance Method Details

#create(id, name, members, is_guest: false, fixed_member: false) ⇒ Object



8
9
10
11
# File 'lib/kintone/command/template_space.rb', line 8

def create(id, name, members, is_guest: false, fixed_member: false)
  body = { id: id, name: name, members: members, isGuest: is_guest, fixedMember: fixed_member }
  @api.post(@url, body)
end