コード例 #1
0
 def update(self, human_resource, name):
     body = {
         "human_resource": {
             "name": name,
         },
     }
     return self._put(
         "/human_resources/%s" % base.getid(human_resource),
         body,
         "human_resource")
コード例 #2
0
 def get(self, crud_resource):
     return super(CrudResourceManager, self).get(
         crud_resource_id=base.getid(crud_resource))
コード例 #3
0
 def get(self, human_resource):
     return self._get(
         "/human_resources/%s" % base.getid(human_resource),
         "human_resource")
コード例 #4
0
 def test_getid(self):
     class TmpObject(base.Resource):
         id = "4"
     self.assertEqual(base.getid(TmpObject(None, {})), "4")