Method: Content#update_stage
- Defined in:
- lib/user/content/content.rb
#update_stage(id, data) ⇒ Object
Update stage.
Update a stage info.
Parameters
- id
-
(Integer) – Stage id.
- data
-
(Hash) – Data to be submited.
Example
config_json = {
"count": 2
}
event_json = {
"rset": "DTSTART:20190214T000000Z",
"duration": 2
}
data = {
"stageProps": {
"title": "New Stage Modified",
"description": "New Stage Description Modified"
},
"config_json": config_json.to_json,
"event_json": event_json.to_json
}
@data = @mints_user.update_stage(3, data.to_json)
231 232 233 234 |
# File 'lib/user/content/content.rb', line 231 def update_stage(id, data) #TODO: Inform StageController.update method has been modified return @client.raw("put", "/content/stages/#{id}", nil, data) end |