class Twilio::REST::Serverless::V1::ServiceContext::FunctionContext::FunctionVersionContext::FunctionVersionContentContext
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Public Class Methods
new(version, service_sid, function_sid, sid)
click to toggle source
Initialize the FunctionVersionContentContext
@param [Version] version Version
that contains the resource @param [String] service_sid The SID of the Service to fetch the Function Version
content from.
@param [String] function_sid The SID of the Function that is the parent of the
Function Version content to fetch.
@param [String] sid The SID of the Function Version
content to fetch. @return [FunctionVersionContentContext] FunctionVersionContentContext
Calls superclass method
Twilio::REST::InstanceContext::new
# File lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb 92 def initialize(version, service_sid, function_sid, sid) 93 super(version) 94 95 # Path Solution 96 @solution = {service_sid: service_sid, function_sid: function_sid, sid: sid, } 97 @uri = "/Services/#{@solution[:service_sid]}/Functions/#{@solution[:function_sid]}/Versions/#{@solution[:sid]}/Content" 98 end
Public Instance Methods
fetch()
click to toggle source
Fetch the FunctionVersionContentInstance
@return [FunctionVersionContentInstance] Fetched FunctionVersionContentInstance
# File lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb 103 def fetch 104 payload = @version.fetch('GET', @uri) 105 106 FunctionVersionContentInstance.new( 107 @version, 108 payload, 109 service_sid: @solution[:service_sid], 110 function_sid: @solution[:function_sid], 111 sid: @solution[:sid], 112 ) 113 end
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb 124 def inspect 125 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 126 "#<Twilio.Serverless.V1.FunctionVersionContentContext #{context}>" 127 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 117 def to_s 118 context = @solution.map {|k, v| "#{k}: #{v}"}.join(',') 119 "#<Twilio.Serverless.V1.FunctionVersionContentContext #{context}>" 120 end