Added has_method to NodeType

This commit is contained in:
2015-10-20 11:38:34 +02:00
parent 3d392b3b13
commit 9a6af611da

View File

@@ -80,3 +80,8 @@ class NodeType(List, Find, Create, Post, Delete):
"""NodeType class wrapping the REST node_types endpoint
"""
path = "node_types"
def has_method(self, method):
if method in self.allowed_methods:
return True
return False