Class: Twilio::REST::Accounts::V1::BulkConsentsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Accounts::V1::BulkConsentsInstance
- Defined in:
- lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ BulkConsentsInstance
constructor
Initialize the BulkConsentsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#items ⇒ Hash
A list of objects where each object represents the result of processing a ‘correlation_id`.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ BulkConsentsInstance
Initialize the BulkConsentsInstance
105 106 107 108 109 110 111 112 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 105 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'items' => payload['items'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
129 130 131 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 129 def inspect "<Twilio.Accounts.V1.BulkConsentsInstance>" end |
#items ⇒ Hash
Returns A list of objects where each object represents the result of processing a ‘correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
117 118 119 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 117 def items @properties['items'] end |
#to_s ⇒ Object
Provide a user friendly representation
123 124 125 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_consents.rb', line 123 def to_s "<Twilio.Accounts.V1.BulkConsentsInstance>" end |