class Twilio::REST::Messaging::V1::ServiceContext::UsAppToPersonUsecaseInstance

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

Public Class Methods

new(version, payload, messaging_service_sid: nil) click to toggle source

Initialize the UsAppToPersonUsecaseInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @param [String] messaging_service_sid The unique string that we created to

identify the Service resource.

@return [UsAppToPersonUsecaseInstance] UsAppToPersonUsecaseInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
100 def initialize(version, payload, messaging_service_sid: nil)
101   super(version)
102 
103   # Marshaled Properties
104   @properties = {'us_app_to_person_usecases' => payload['us_app_to_person_usecases'], }
105 end

Public Instance Methods

inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
121 def inspect
122   "<Twilio.Messaging.V1.UsAppToPersonUsecaseInstance>"
123 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
115 def to_s
116   "<Twilio.Messaging.V1.UsAppToPersonUsecaseInstance>"
117 end
us_app_to_person_usecases() click to toggle source

@return [Array] Human readable A2P Use Case details

    # File lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
109 def us_app_to_person_usecases
110   @properties['us_app_to_person_usecases']
111 end