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.



219
220
221
222
223
224
225
226
227
228
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 219

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

Instance Method Details

#inspectObject

Provide a detailed, user friendly representation



245
246
247
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 245

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

#messageString

Returns:

  • (String)


233
234
235
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 233

def message
    @properties['message']
end

#to_sObject

Provide a user friendly representation



239
240
241
# File 'lib/twilio-ruby/rest/memory/v1/bulk.rb', line 239

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