lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb in twilio-ruby-6.11.0
- old
+ new
@@ -18,10 +18,11 @@
class Taskrouter < TaskrouterBase
class V1 < Version
class WorkspaceContext < InstanceContext
class EventList < ListResource
+
##
# Initialize the EventList
# @param [Version] version Version that contains the resource
# @return [EventList] EventList
def initialize(version, workspace_sid: nil)
@@ -210,9 +211,10 @@
##
# Fetch the EventInstance
# @return [EventInstance] Fetched EventInstance
def fetch
+
payload = @version.fetch('GET', @uri)
EventInstance.new(
@version,
payload,
workspace_sid: @solution[:workspace_sid],