lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb in twilio-ruby-5.6.0 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb in twilio-ruby-5.6.1
- old
+ new
@@ -103,11 +103,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
@@ -188,11 +188,11 @@
##
# Build an instance of EventInstance
# @param [Hash] payload Payload response from the API
# @return [EventInstance] EventInstance
def get_instance(payload)
- EventInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid])
+ EventInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid], )
end
##
# Provide a user friendly representation
def to_s
@@ -209,11 +209,11 @@
# @return [EventContext] EventContext
def initialize(version, workspace_sid, sid)
super(version)
# Path Solution
- @solution = {workspace_sid: workspace_sid, sid: sid}
+ @solution = {workspace_sid: workspace_sid, sid: sid, }
@uri = "/Workspaces/#{@solution[:workspace_sid]}/Events/#{@solution[:sid]}"
end
##
# Fetch a EventInstance
@@ -225,11 +225,11 @@
'GET',
@uri,
params,
)
- EventInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid], sid: @solution[:sid])
+ EventInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid], sid: @solution[:sid], )
end
##
# Provide a user friendly representation
def to_s
@@ -268,19 +268,19 @@
'url' => payload['url'],
}
# Context
@instance_context = nil
- @params = {'workspace_sid' => workspace_sid, 'sid' => sid || @properties['sid']}
+ @params = {'workspace_sid' => workspace_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
# @return [EventContext] EventContext for this EventInstance
def context
unless @instance_context
- @instance_context = EventContext.new(@version, @params['workspace_sid'], @params['sid'])
+ @instance_context = EventContext.new(@version, @params['workspace_sid'], @params['sid'], )
end
@instance_context
end
##
\ No newline at end of file