lib/twilio-ruby/rest/api/v2010/account/conference.rb in twilio-ruby-5.38.0 vs lib/twilio-ruby/rest/api/v2010/account/conference.rb in twilio-ruby-5.39.0

- old
+ new

@@ -145,15 +145,13 @@ 'Status' => status, 'PageToken' => page_token, 'Page' => page_number, 'PageSize' => page_size, }) - response = @version.page( - 'GET', - @uri, - params - ) + + response = @version.page('GET', @uri, params) + ConferencePage.new(@version, response, @solution) end ## # Retrieve a single page of ConferenceInstance records from the API. @@ -225,21 +223,15 @@ @participants = nil @recordings = nil end ## - # Fetch a ConferenceInstance + # Fetch the ConferenceInstance # @return [ConferenceInstance] Fetched ConferenceInstance def fetch - params = Twilio::Values.of({}) + payload = @version.fetch('GET', @uri) - payload = @version.fetch( - 'GET', - @uri, - params, - ) - ConferenceInstance.new( @version, payload, account_sid: @solution[:account_sid], sid: @solution[:sid], @@ -262,15 +254,11 @@ 'Status' => status, 'AnnounceUrl' => announce_url, 'AnnounceMethod' => announce_method, }) - payload = @version.update( - 'POST', - @uri, - data: data, - ) + payload = @version.update('POST', @uri, data: data) ConferenceInstance.new( @version, payload, account_sid: @solution[:account_sid], @@ -454,10 +442,10 @@ def call_sid_ending_conference @properties['call_sid_ending_conference'] end ## - # Fetch a ConferenceInstance + # Fetch the ConferenceInstance # @return [ConferenceInstance] Fetched ConferenceInstance def fetch context.fetch end \ No newline at end of file