lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb in twilio-ruby-6.9.1 vs lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb in twilio-ruby-6.11.0

- old
+ new

@@ -19,10 +19,11 @@ class V1 < Version class ServiceContext < InstanceContext class EnvironmentContext < InstanceContext class LogList < ListResource + ## # Initialize the LogList # @param [Version] version Version that contains the resource # @return [LogList] LogList def initialize(version, service_sid: nil, environment_sid: nil) @@ -166,9 +167,10 @@ ## # Fetch the LogInstance # @return [LogInstance] Fetched LogInstance def fetch + payload = @version.fetch('GET', @uri) LogInstance.new( @version, payload, service_sid: @solution[:service_sid],