

def __init__(self, href, draft=drafts.LATEST, **kwargs):
    '``Builder(href, draft=drafts.LATEST, **kwargs)``\n\n        Make a builder for a document. The document starts with a ``self``\n        link to ``href``.\n\n        The version of the spec may be specified in the optional ``draft``\n        argument, which defaults to the latest draft. For example, to build a\n        document conforming to the older Draft 4 of the spec:\n\n        ``\n        dougrain.Document("/test", draft=dougrain.drafts.DRAFT_4)\n        ``\n\n        Additional properties for the self link may be supplied in other\n        keyword arguments. For example:\n\n        ``\n        dougrain.Document("/test", profile="/profiles/")\n        ``\n\n        '
    self.o = {
        '_links': {
            'self': dict(href=href, **kwargs),
        },
    }
    self.draft = draft.draft

dataset/ETHPy150Open wharris/dougrain/dougrain/builder.py Builder.__init__/original