Class: Twilio::REST::Messaging::V1::ServiceContext::UsAppToPersonUsecaseInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, messaging_service_sid: nil) ⇒ UsAppToPersonUsecaseInstance

Initialize the UsAppToPersonUsecaseInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this UsAppToPersonUsecase resource.

  • sid (String)

    The SID of the Call resource to fetch.



107
108
109
110
111
112
113
114
# File 'lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb', line 107

def initialize(version, payload , messaging_service_sid: nil)
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'us_app_to_person_usecases' => payload['us_app_to_person_usecases'],
    }
end

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



131
132
133
# File 'lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb', line 131

def inspect
    "<Twilio.Messaging.V1.UsAppToPersonUsecaseInstance>"
end

#to_sObject

Provide a user friendly representation



125
126
127
# File 'lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb', line 125

def to_s
    "<Twilio.Messaging.V1.UsAppToPersonUsecaseInstance>"
end

#us_app_to_person_usecasesArray<Hash>

Returns Human readable name, code, description and post_approval_required (indicates whether or not post approval is required for this Use Case) of A2P Campaign Use Cases.

Returns:

  • (Array<Hash>)

    Human readable name, code, description and post_approval_required (indicates whether or not post approval is required for this Use Case) of A2P Campaign Use Cases.



119
120
121
# File 'lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb', line 119

def us_app_to_person_usecases
    @properties['us_app_to_person_usecases']
end