Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
konono committed Sep 12, 2023
1 parent acab0c5 commit 1b494a6
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions towerlib/entities/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,10 @@ def _get_dynamic_value(self, variable):

@property
def workflow_nodes(self):
"""The WorkflowNodes this event belongs to.
"""Workflow nodes is resouce belonging to a Workflow job.
Returns:
WorkflowNodes: The WorkflowNodes this event belongs to.
WorkflowNodes: This resouce belonging to a Workflow job.
"""
url = self._data.get('related', {}).get('workflow_nodes')
Expand Down Expand Up @@ -1999,47 +1999,50 @@ def module_name(self):


class WorkflowNodes(Entity):
"""Models the user entity of ansible tower."""
"""Models the Workflow nodes entity of ansible tower."""


def __init__(self, tower_instance, data):
Entity.__init__(self, tower_instance, data)

@property
def count(self):
"""The job this event belongs to.
"""Number of workflow nodes.
Returns:
Job: The job this event belongs to.
integer: Number of workflow nodes.
"""
return self._data.get('count')

@property
def next(self):
"""The job this event belongs to.
"""The `next` and `previous` fields provides links to
additional results if there are more than will fit on a single page.
Returns:
Job: The job this event belongs to.
string: url of next page.
"""
return self._data.get('next')

@property
def previous(self):
"""The job this event belongs to.
"""The `next` and `previous` fields provides links to
additional results if there are more than will fit on a single page.
Returns:
Job: The job this event belongs to.
string: url of previous page.
"""
return self._data.get('previous')

@property
def results(self):
"""The job this event belongs to.
"""Results for workflow nodes.
Returns:
Job: The job this event belongs to.
list: Results for workflow nodes.
"""
return self._data.get('results')
Expand Down

0 comments on commit 1b494a6

Please sign in to comment.