Class: Twilio::REST::Memory::V1::BulkInstance

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, store_id: nil) ⇒ BulkInstance

Initialize the BulkInstance

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

  • sid (String) —

    The SID of the Call resource to fetch.



160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 160

def initialize(version, payload , store_id: nil)
    
    apiV1Version = ApiV1Version.new version.domain, version
    super(apiV1Version)
    
    # Marshaled Properties
    @properties = { 
        'message' => payload['message'],
        'operation_id' => payload['operation_id'],
        'created_at' => Twilio.deserialize_iso8601_datetime(payload['created_at']),
        'status_url' => payload['status_url'],
    }
end

Instance Method Details

#created_at ⇒ Time

Returns ISO 8601 timestamp when the operation was created.

Returns:

  • (Time) —

    ISO 8601 timestamp when the operation was created.



189
190
191
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 189

def created_at
    @properties['created_at']
end

#inspect ⇒ Object

Provide a detailed, user friendly representation



207
208
209
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 207

def inspect
    "<Twilio.Memory.V1.BulkInstance>"
end

#message ⇒ String

Returns Confirmation message for the operation.

Returns:

  • (String) —

    Confirmation message for the operation.



177
178
179
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 177

def message
    @properties['message']
end

#operation_id ⇒ String

Returns The ID of an asynchronous profile domain operation.

Returns:

  • (String) —

    The ID of an asynchronous profile domain operation.



183
184
185
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 183

def operation_id
    @properties['operation_id']
end

#status_url ⇒ String

Returns URL to query the operation status.

Returns:

  • (String) —

    URL to query the operation status.



195
196
197
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 195

def status_url
    @properties['status_url']
end

#to_s ⇒ Object

Provide a user friendly representation



201
202
203
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 201

def to_s
    "<Twilio.Memory.V1.BulkInstance>"
end