Class: Twilio::REST::Accounts::V1::BulkContactsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Accounts::V1::BulkContactsInstance
- Defined in:
- lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ BulkContactsInstance
constructor
Initialize the BulkContactsInstance.
-
#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) ⇒ BulkContactsInstance
Initialize the BulkContactsInstance
105 106 107 108 109 110 111 112 |
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_contacts.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_contacts.rb', line 129 def inspect "<Twilio.Accounts.V1.BulkContactsInstance>" 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_contacts.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_contacts.rb', line 123 def to_s "<Twilio.Accounts.V1.BulkContactsInstance>" end |