class Twilio::REST::Serverless::V1::ServiceContext::FunctionContext::FunctionVersionContext::FunctionVersionContentPage

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 FunctionVersionContentPage @param [Version] version Version that contains the resource @param [Response] response Response from the API @param [Hash] solution Path solution for the resource @return [FunctionVersionContentPage] FunctionVersionContentPage

Calls superclass method Twilio::REST::Page::new
   # File lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb
52 def initialize(version, response, solution)
53   super(version, response)
54 
55   # Path Solution
56   @solution = solution
57 end

Public Instance Methods

get_instance(payload) click to toggle source

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

   # File lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb
63 def get_instance(payload)
64   FunctionVersionContentInstance.new(
65       @version,
66       payload,
67       service_sid: @solution[:service_sid],
68       function_sid: @solution[:function_sid],
69       sid: @solution[:sid],
70   )
71 end
to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb
75 def to_s
76   '<Twilio.Serverless.V1.FunctionVersionContentPage>'
77 end