@@ -18,7 +18,7 @@ class Room(SparkData):
1818 """Model a Spark 'room' JSON object as a native Python object."""
1919
2020 def __init__ (self , json ):
21- """Init a new Person data object from a JSON dictionary or string.
21+ """Init a new Room data object from a JSON dictionary or string.
2222
2323 Args:
2424 json(dict, unicode, str): Input JSON object.
@@ -123,7 +123,7 @@ def list(self, max=None, **query_params):
123123 'group': returns all group rooms.
124124
125125 Yields:
126- Person : The the next room from the Cisco Spark query.
126+ Room : The the next room from the Cisco Spark query.
127127
128128 Raises:
129129 AssertionError: If the parameter types are incorrect.
@@ -143,7 +143,7 @@ def list(self, max=None, **query_params):
143143 params [utf8 (param )] = value
144144 # API request - get items
145145 items = self .session .get_items ('rooms' , params = params )
146- # Yield Person objects created from the returned items JSON objects
146+ # Yield Room objects created from the returned items JSON objects
147147 for item in items :
148148 yield Room (item )
149149
@@ -157,6 +157,9 @@ def create(self, title, teamId=None):
157157 teamId(unicode, str): The team ID with which this room is
158158 associated.
159159
160+ Returns:
161+ Room: With the details of the created room.
162+
160163 Raises:
161164 AssertionError: If the parameter types are incorrect.
162165 SparkApiError: If the Cisco Spark cloud returns an error.
@@ -180,6 +183,9 @@ def get(self, roomId):
180183 Args:
181184 roomId(unicode, str): The roomId of the room.
182185
186+ Returns:
187+ Room: With the details of the requested room.
188+
183189 Raises:
184190 AssertionError: If the parameter types are incorrect.
185191 SparkApiError: If the Cisco Spark cloud returns an error.
@@ -202,7 +208,7 @@ def update(self, roomId, **update_attributes):
202208 title(unicode, str): A user-friendly name for the room.
203209
204210 Returns:
205- A Person object with the updated Spark room details.
211+ Room: With the updated Spark room details.
206212
207213 Raises:
208214 AssertionError: If the parameter types are incorrect.
0 commit comments