Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatYYX committed Dec 7, 2018
1 parent f6be3fe commit ed0d429
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rltk/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ def get_property_names(cls: type):

@remove_raw_object
class AutoGeneratedRecord(Record):
"""
Properties are auto generated based on the keys in `raw_object`.
`raw_object` has to contain `id` which used as id in record.
Args:
raw_object (object): Raw data which will be used to create properties.
"""

def __init__(self, raw_object):
super().__init__(raw_object)
Expand Down

0 comments on commit ed0d429

Please sign in to comment.