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

Overview

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

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

  • messaging_service_sid (String) (defaults to: nil)

    The unique string that we created to identify the Service resource.


96
97
98
99
100
101
# File 'lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb', line 96

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


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

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

#to_sObject

Provide a user friendly representation


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

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

#us_app_to_person_usecasesArray[Hash]

Returns Human readable A2P Use Case details.

Returns:

  • (Array[Hash])

    Human readable A2P Use Case details


105
106
107
# File 'lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb', line 105

def us_app_to_person_usecases
  @properties['us_app_to_person_usecases']
end