Class: Twilio::REST::Accounts::V1::BulkContactsInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ BulkContactsInstance

Initialize the BulkContactsInstance

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 BulkContacts resource.

  • sid (String)

    The SID of the Call resource to fetch.



198
199
200
201
202
203
204
205
206
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb', line 198

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

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



223
224
225
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb', line 223

def inspect
    "<Twilio.Accounts.V1.BulkContactsInstance>"
end

#itemsHash

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.

Returns:

  • (Hash)

    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.



211
212
213
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb', line 211

def items
    @properties['items']
end

#to_sObject

Provide a user friendly representation



217
218
219
# File 'lib/twilio-ruby/rest/accounts/v1/bulk_contacts.rb', line 217

def to_s
    "<Twilio.Accounts.V1.BulkContactsInstance>"
end