lib/twilio-ruby/rest/monitor/v1/event.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/monitor/v1/event.rb in twilio-ruby-6.11.0
- old
+ new
@@ -16,10 +16,11 @@
module Twilio
module REST
class Monitor < MonitorBase
class V1 < Version
class EventList < ListResource
+
##
# Initialize the EventList
# @param [Version] version Version that contains the resource
# @return [EventList] EventList
def initialize(version)
@@ -177,9 +178,10 @@
##
# Fetch the EventInstance
# @return [EventInstance] Fetched EventInstance
def fetch
+
payload = @version.fetch('GET', @uri)
EventInstance.new(
@version,
payload,
sid: @solution[:sid],