@@ -18,7 +18,7 @@ class Room(SparkData):
18
18
"""Model a Spark 'room' JSON object as a native Python object."""
19
19
20
20
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.
22
22
23
23
Args:
24
24
json(dict, unicode, str): Input JSON object.
@@ -123,7 +123,7 @@ def list(self, max=None, **query_params):
123
123
'group': returns all group rooms.
124
124
125
125
Yields:
126
- Person : The the next room from the Cisco Spark query.
126
+ Room : The the next room from the Cisco Spark query.
127
127
128
128
Raises:
129
129
AssertionError: If the parameter types are incorrect.
@@ -143,7 +143,7 @@ def list(self, max=None, **query_params):
143
143
params [utf8 (param )] = value
144
144
# API request - get items
145
145
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
147
147
for item in items :
148
148
yield Room (item )
149
149
@@ -157,6 +157,9 @@ def create(self, title, teamId=None):
157
157
teamId(unicode, str): The team ID with which this room is
158
158
associated.
159
159
160
+ Returns:
161
+ Room: With the details of the created room.
162
+
160
163
Raises:
161
164
AssertionError: If the parameter types are incorrect.
162
165
SparkApiError: If the Cisco Spark cloud returns an error.
@@ -180,6 +183,9 @@ def get(self, roomId):
180
183
Args:
181
184
roomId(unicode, str): The roomId of the room.
182
185
186
+ Returns:
187
+ Room: With the details of the requested room.
188
+
183
189
Raises:
184
190
AssertionError: If the parameter types are incorrect.
185
191
SparkApiError: If the Cisco Spark cloud returns an error.
@@ -202,7 +208,7 @@ def update(self, roomId, **update_attributes):
202
208
title(unicode, str): A user-friendly name for the room.
203
209
204
210
Returns:
205
- A Person object with the updated Spark room details.
211
+ Room: With the updated Spark room details.
206
212
207
213
Raises:
208
214
AssertionError: If the parameter types are incorrect.
0 commit comments