Class: Twilio::REST::Memory::V1::EventInstance

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, store_id: nil, profile_id: nil) ⇒ EventInstance

Initialize the EventInstance

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

  • sid (String)

    The SID of the Call resource to fetch.



286
287
288
289
290
291
292
293
294
295
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 286

def initialize(version, payload , store_id: nil, profile_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



312
313
314
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 312

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

#messageString

Returns:

  • (String)


300
301
302
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 300

def message
    @properties['message']
end

#to_sObject

Provide a user friendly representation



306
307
308
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 306

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