Skip to content

Commit

Permalink
moved JamfPro init docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
brysontyrrell committed Jun 5, 2017
1 parent b08fa10 commit 5b7281e
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions jook/models/webhooks.py
Expand Up @@ -276,26 +276,26 @@ def data(self):


class JamfPro(BaseWebhook):
"""The base Webhook object for 'JSS' events.
:param str institution: The name of the organization the server is
registered to (defaults to 'Example Org').
:param str host_address: The IP address of the originating server (defaults
to ``10.0.0.1``).
:param str web_app_path: The root path of the web app for the server
(defaults to ``/``).
:param bool is_master: Is the originating server a cluster master (defaults
to ``True``).
:param str server_url: The URL of the originating server (defaults to
``https://jss.example.org``).
"""
"""The base Webhook object for 'JSS' events."""
valid_events = ('JSSShutdown', 'JSSStartup')

def __init__(self, *args, **kwargs):
"""
:param str institution: The name of the organization the server is
registered to (defaults to 'Example Org').
:param str host_address: The IP address of the originating server (defaults
to ``10.0.0.1``).
:param str web_app_path: The root path of the web app for the server
(defaults to ``/``).
:param bool is_master: Is the originating server a cluster master (defaults
to ``True``).
:param str server_url: The URL of the originating server (defaults to
``https://jss.example.org``).
"""
super(JamfPro, self).__init__(*args, **kwargs)

self.institution = kwargs.pop('institution', 'Example Org')
Expand Down

0 comments on commit 5b7281e

Please sign in to comment.