Class: Vonage::Meetings::Rooms
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Meetings::Rooms
- Extended by:
- T::Sig
- Defined in:
- lib/vonage/meetings/rooms.rb
Defined Under Namespace
Classes: ListResponse
Instance Method Summary collapse
- #create(display_name:, **params) ⇒ Response deprecated Deprecated.
- #info(room_id:) ⇒ Response deprecated Deprecated.
- #list(**params) ⇒ ListResponse deprecated Deprecated.
- #update(room_id:, **params) ⇒ Response deprecated Deprecated.
Instance Method Details
#create(display_name:, **params) ⇒ Response
Deprecated.
Create a new room.
105 106 107 108 109 110 111 112 |
# File 'lib/vonage/meetings/rooms.rb', line 105 def create(display_name:, **params) logger.info('This method is deprecated and will be removed in a future release.') request( "/v1/meetings/rooms", params: params.merge({ display_name: display_name }), type: Post ) end |
#info(room_id:) ⇒ Response
Deprecated.
Return information for specified room.
45 46 47 48 |
# File 'lib/vonage/meetings/rooms.rb', line 45 def info(room_id:) logger.info('This method is deprecated and will be removed in a future release.') request("/v1/meetings/rooms/" + room_id) end |
#list(**params) ⇒ ListResponse
Deprecated.
Get a list of rooms associated with the Vonage application.
27 28 29 30 31 32 33 |
# File 'lib/vonage/meetings/rooms.rb', line 27 def list(**params) logger.info('This method is deprecated and will be removed in a future release.') path = "/v1/meetings/rooms" path += "?#{Params.encode(params)}" unless params.empty? request(path, response_class: ListResponse) end |
#update(room_id:, **params) ⇒ Response
Deprecated.
Update an existing room.
Although paramaters (other than room_id
) are optional, at least one other parameter must be provided or an error
response will be received.
155 156 157 158 159 160 161 162 163 164 165 |
# File 'lib/vonage/meetings/rooms.rb', line 155 def update(room_id:, **params) logger.info('This method is deprecated and will be removed in a future release.') raise ArgumentError, 'must provide at least one other param in addition to :room_id' if params.empty? request( "/v1/meetings/rooms/" + room_id, params: { update_details: params }, type: Patch ) end |