lib/twilio-ruby/rest/api/v2010/account/call/notification.rb in twilio-ruby-5.4.2 vs lib/twilio-ruby/rest/api/v2010/account/call/notification.rb in twilio-ruby-5.4.3

- old
+ new

@@ -19,14 +19,11 @@ # @return [NotificationList] NotificationList def initialize(version, account_sid: nil, call_sid: nil) super(version) # Path Solution - @solution = { - account_sid: account_sid, - call_sid: call_sid - } + @solution = {account_sid: account_sid, call_sid: call_sid} @uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Notifications.json" end ## # Lists NotificationInstance records from the API as a list. @@ -88,13 +85,11 @@ # This operation lazily loads records as efficiently as possible until the limit # is reached. def each limits = @version.read_limits - page = self.page( - page_size: limits[:page_size], - ) + page = self.page(page_size: limits[:page_size],) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]).each {|x| yield x} end @@ -192,15 +187,11 @@ # @return [NotificationContext] NotificationContext def initialize(version, account_sid, call_sid, sid) super(version) # Path Solution - @solution = { - account_sid: account_sid, - call_sid: call_sid, - sid: sid, - } + @solution = {account_sid: account_sid, call_sid: call_sid, sid: sid,} @uri = "/Accounts/#{@solution[:account_sid]}/Calls/#{@solution[:call_sid]}/Notifications/#{@solution[:sid]}.json" end ## # Fetch a NotificationInstance @@ -271,14 +262,10 @@ 'response_headers' => payload['response_headers'], } # Context @instance_context = nil - @params = { - 'account_sid' => account_sid, - 'call_sid' => call_sid, - 'sid' => sid || @properties['sid'], - } + @params = {'account_sid' => account_sid, 'call_sid' => call_sid, 'sid' => sid || @properties['sid'],} end ## # Generate an instance context for the instance, the context is capable of # performing various actions. All instance actions are proxied to the context \ No newline at end of file