Skip to content

Commit

Permalink
Add Queue doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Oct 29, 2020
1 parent a507ac7 commit 4feaaad
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion api/ECNQueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,17 @@ def __repr__(self) -> str:
return self.queue + str(self.number)

class Queue:
# TODO: Add Queue class documentation
"""A collection of items.
Example:
# Create a queue (ce)
>>> queue = Queue("ce")
Attributes:
name: The name of the queue.
items: A list of Items in the queue.
jsonData: A JSON serializable representation of the Queue.
"""

def __init__(self, name: str) -> None:
self.name = name
Expand Down

0 comments on commit 4feaaad

Please sign in to comment.