Class: Twilio::REST::Messaging::V1::UsecaseList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Messaging::V1::UsecaseList
- 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
-
#fetch ⇒ UsecaseInstance
Fetch the UsecaseInstance.
-
#initialize(version) ⇒ UsecaseList
constructor
Initialize the UsecaseList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ UsecaseList
Initialize the UsecaseList
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
#fetch ⇒ UsecaseInstance
Fetch the UsecaseInstance
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_s ⇒ Object
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 |