class Twilio::REST::Messaging::V1::UsecaseList
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Public Class Methods
new(version)
click to toggle source
Initialize the UsecaseList
@param [Version] version Version
that contains the resource @return [UsecaseList] UsecaseList
Calls superclass method
Twilio::REST::ListResource::new
# File lib/twilio-ruby/rest/messaging/v1/usecase.rb 20 def initialize(version) 21 super(version) 22 23 # Path Solution 24 @solution = {} 25 @uri = "/Services/Usecases" 26 end
Public Instance Methods
fetch()
click to toggle source
Fetch the UsecaseInstance
@return [UsecaseInstance] Fetched UsecaseInstance
# File lib/twilio-ruby/rest/messaging/v1/usecase.rb 31 def fetch 32 payload = @version.fetch('GET', @uri) 33 34 UsecaseInstance.new(@version, payload, ) 35 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/messaging/v1/usecase.rb 39 def to_s 40 '#<Twilio.Messaging.V1.UsecaseList>' 41 end