Class: Twilio::REST::Messaging::V1::UsecaseList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v1/usecase.rb

Overview

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ UsecaseList

Initialize the UsecaseList

Parameters:

  • version (Version)

    Version that contains the resource


20
21
22
23
24
25
26
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 20

def initialize(version)
  super(version)

  # Path Solution
  @solution = {}
  @uri = "/Services/Usecases"
end

Instance Method Details

#fetchUsecaseInstance

Fetch the UsecaseInstance

Returns:


31
32
33
34
35
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 31

def fetch
  payload = @version.fetch('GET', @uri)

  UsecaseInstance.new(@version, payload, )
end

#to_sObject

Provide a user friendly representation


39
40
41
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 39

def to_s
  '#<Twilio.Messaging.V1.UsecaseList>'
end