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