lib/kintone/command/field_acl.rb in kintone-0.0.4 vs lib/kintone/command/field_acl.rb in kintone-0.0.5

- old
+ new

@@ -1,15 +1,11 @@ require 'kintone/command' -require 'kintone/api' -class Kintone::Command::FieldAcl - PATH = "field/acl" - - def initialize(api) - @api = api - @url = @api.get_url(PATH) +class Kintone::Command::FieldAcl < Kintone::Command + def self.path + 'field/acl' end def update(id, rights) - @api.put(@url, {:id => id, :rights => rights}) + @api.put(@url, id: id, rights: rights) end end