daily-co / daily-ruby

A Ruby gem for communicating with the Daily API
1 stars 0 forks source link

Create Room Example Doesn't Include Options #4

Closed taylorkrause closed 4 weeks ago

taylorkrause commented 1 month ago

Using the following example: ` room_api_instance = Daily::RoomsApi.new opts = { room_request: Daily::CreateRoomRequest.new( privacy: 'private', properties: Daily::RoomProperties.new({ exp: (Time.now + (3600 * 2)).to_i, # Delete the room after two hours enable_mesh_sfu: true, sfu_switchover: 0.5 }) ) }

begin room = room_api_instance.create_room(opts) p room rescue Daily::ApiError => e puts "Error when calling RoomApi->create_room: #{e}" end `

produces the following api call

Screen Shot 2024-07-30 at 12 04 50 PM

taylorkrause commented 1 month ago

room_request: Daily::CreateRoomRequest.new

should be create_room_request: Daily::CreateRoomRequest.new