Class: Twilio::REST::Memory::V1::EventList::ProfileEventRequestEvents

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ ProfileEventRequestEvents

Returns a new instance of ProfileEventRequestEvents.



83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 83

def initialize(payload)
        @timestamp = payload["timestamp"]
        @lifecycle = payload["lifecycle"]
        @conversation_id = payload["conversation_id"]
        @communication_id = payload["communication_id"]
        @communication_type = payload["communication_type"]
        @communication_status = payload["communication_status"]
        @direction = payload["direction"]
        @sender = payload["sender"]
        @recipient = payload["recipient"]
        @error_code = payload["error_code"]
        @error_message = payload["error_message"]
end

Instance Attribute Details

#communication_idObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def communication_id
  @communication_id
end

#communication_statusObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def communication_status
  @communication_status
end

#communication_typeObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def communication_type
  @communication_type
end

#conversation_idObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def conversation_id
  @conversation_id
end

#directionObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def direction
  @direction
end

#error_codeObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def error_code
  @error_code
end

#error_messageObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def error_message
  @error_message
end

#lifecycleObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def lifecycle
  @lifecycle
end

#recipientObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def recipient
  @recipient
end

#senderObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def sender
  @sender
end

#timestampObject

Parameters:

  • : (timestamp)
    Time

    The time the event occurred in ISO8601 format with millisecond resolution. Defaults to received time if not provided.

  • : (lifecycle)
    String

    The lifecycle event type of the communication.

  • : (conversation_id)
    String

    The unique identifier for the conversation.

  • : (communication_id)
    String

    The unique identifier for the communication.

  • : (communication_type)
    String

    The communication channel type.

  • : (communication_status)
    String

    The lifecycle status of the communication.

  • : (direction)
    String

    The direction of the communication.

  • : (sender)
    EventList.CommunicationLifecycleEventSender
  • : (recipient)
    EventList.CommunicationLifecycleEventRecipient
  • : (error_code)
    String

    Error code for FAILED communication status.

  • : (error_message)
    String

    Error message for FAILED communication status.



82
83
84
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 82

def timestamp
  @timestamp
end

Instance Method Details

#to_json(options = {}) ⇒ Object



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 96

def to_json(options = {})
{
        "timestamp": @timestamp,
        "lifecycle": @lifecycle,
        "conversationId": @conversation_id,
        "communicationId": @communication_id,
        "communicationType": @communication_type,
        "communicationStatus": @communication_status,
        "direction": @direction,
        "sender": @sender,
        "recipient": @recipient,
        "errorCode": @error_code,
        "errorMessage": @error_message,
}.to_json(options)
end