Skip to content

Commit

Permalink
Added documentation to [byte/base.py]
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzeman committed May 8, 2017
1 parent 745aa28 commit 5762885
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions byte/base.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
class BaseExpression(object):
"""Base class for expressions."""

def execute(self, item):
"""Execute expression.
:param item: Item
:type item: byte.model.Model
"""
raise NotImplementedError


class BaseProperty(object):
"""Base class for properties."""

def get(self, obj):
"""Get property value from object.
:param obj: Item
:type obj: byte.model.Model
"""
raise NotImplementedError

def set(self, obj, value):
"""Set property value on object.
:param obj: Item
:type obj: byte.model.Model
:param value: Value
:type value: any
"""
raise NotImplementedError

0 comments on commit 5762885

Please sign in to comment.