lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb in twilio-ruby-5.4.4 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb in twilio-ruby-5.4.5

- old
+ new

@@ -46,11 +46,11 @@ ## # Build an instance of WorkspaceStatisticsInstance # @param [Hash] payload Payload response from the API # @return [WorkspaceStatisticsInstance] WorkspaceStatisticsInstance def get_instance(payload) - WorkspaceStatisticsInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid],) + WorkspaceStatisticsInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid]) end ## # Provide a user friendly representation def to_s @@ -66,11 +66,11 @@ # @return [WorkspaceStatisticsContext] WorkspaceStatisticsContext def initialize(version, workspace_sid) super(version) # Path Solution - @solution = {workspace_sid: workspace_sid,} + @solution = {workspace_sid: workspace_sid} @uri = "/Workspaces/#{@solution[:workspace_sid]}/Statistics" end ## # Fetch a WorkspaceStatisticsInstance @@ -93,11 +93,11 @@ 'GET', @uri, params, ) - WorkspaceStatisticsInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid],) + WorkspaceStatisticsInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid]) end ## # Provide a user friendly representation def to_s @@ -125,19 +125,19 @@ 'url' => payload['url'], } # Context @instance_context = nil - @params = {'workspace_sid' => workspace_sid,} + @params = {'workspace_sid' => workspace_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 # @return [WorkspaceStatisticsContext] WorkspaceStatisticsContext for this WorkspaceStatisticsInstance def context unless @instance_context - @instance_context = WorkspaceStatisticsContext.new(@version, @params['workspace_sid'],) + @instance_context = WorkspaceStatisticsContext.new(@version, @params['workspace_sid']) end @instance_context end ## \ No newline at end of file