class Twilio::REST::Trunking::V1::TrunkPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the TrunkPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [TrunkPage] TrunkPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/trunking/v1/trunk.rb 168 def initialize(version, response, solution) 169 super(version, response) 170 171 # Path Solution 172 @solution = solution 173 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of TrunkInstance
@param [Hash] payload Payload response from the API @return [TrunkInstance] TrunkInstance
# File lib/twilio-ruby/rest/trunking/v1/trunk.rb 179 def get_instance(payload) 180 TrunkInstance.new(@version, payload, ) 181 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/trunking/v1/trunk.rb 185 def to_s 186 '<Twilio.Trunking.V1.TrunkPage>' 187 end