class Twilio::REST::Serverless::V1::ServiceContext::EnvironmentContext::LogPage

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

new(version, response, solution) click to toggle source

Initialize the LogPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [LogPage] LogPage

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb
162 def initialize(version, response, solution)
163   super(version, response)
164 
165   # Path Solution
166   @solution = solution
167 end

Public Instance Methods

get_instance(payload) click to toggle source

Build an instance of LogInstance @param [Hash] payload Payload response from the API @return [LogInstance] LogInstance

    # File lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb
173 def get_instance(payload)
174   LogInstance.new(
175       @version,
176       payload,
177       service_sid: @solution[:service_sid],
178       environment_sid: @solution[:environment_sid],
179   )
180 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb
184 def to_s
185   '<Twilio.Serverless.V1.LogPage>'
186 end