Class: Twilio::REST::Messaging::V1::UsecaseInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Messaging::V1::UsecaseInstance
- 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
-
#initialize(version, payload) ⇒ UsecaseInstance
constructor
Initialize the UsecaseInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#usecases ⇒ Array[Hash]
Human readable Messaging Service Use Case details.
Constructor Details
#initialize(version, payload) ⇒ UsecaseInstance
Initialize the UsecaseInstance
83 84 85 86 87 88 |
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 83 def initialize(version, payload) super(version) # Marshaled Properties @properties = {'usecases' => payload['usecases'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
104 105 106 |
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 104 def inspect "<Twilio.Messaging.V1.UsecaseInstance>" end |
#to_s ⇒ Object
Provide a user friendly representation
98 99 100 |
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 98 def to_s "<Twilio.Messaging.V1.UsecaseInstance>" end |
#usecases ⇒ Array[Hash]
Returns Human readable Messaging Service Use Case details.
92 93 94 |
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 92 def usecases @properties['usecases'] end |