class Twilio::REST::Fax::V1::FaxContext::FaxMediaPage

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

Calls superclass method Twilio::REST::Page::new
    # File lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb
127 def initialize(version, response, solution)
128   super(version, response)
129 
130   # Path Solution
131   @solution = solution
132 end

Public Instance Methods

get_instance(payload) click to toggle source

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

    # File lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb
138 def get_instance(payload)
139   FaxMediaInstance.new(@version, payload, fax_sid: @solution[:fax_sid], )
140 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb
144 def to_s
145   '<Twilio.Fax.V1.FaxMediaPage>'
146 end