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
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 use case details (usecase, description and purpose) of Messaging Service Use Cases.
Constructor Details
#initialize(version, payload) ⇒ UsecaseInstance
Initialize the UsecaseInstance
93 94 95 96 97 98 99 100 |
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 93 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'usecases' => payload['usecases'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
117 118 119 |
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 117 def inspect "<Twilio.Messaging.V1.UsecaseInstance>" end |
#to_s ⇒ Object
Provide a user friendly representation
111 112 113 |
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 111 def to_s "<Twilio.Messaging.V1.UsecaseInstance>" end |
#usecases ⇒ Array<Hash>
Returns Human readable use case details (usecase, description and purpose) of Messaging Service Use Cases.
105 106 107 |
# File 'lib/twilio-ruby/rest/messaging/v1/usecase.rb', line 105 def usecases @properties['usecases'] end |