Class: Twilio::REST::Memory::V1::RecallList::Participant

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ Participant

Returns a new instance of Participant.



108
109
110
111
112
113
114
115
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 108

def initialize(payload)
        @id = payload["id"]
        @name = payload["name"]
        @type = payload["type"]
        @profile_id = payload["profile_id"]
        @address = payload["address"]
        @channel = payload["channel"]
end

Instance Attribute Details

#addressObject

Parameters:

  • : (id)
    String

    Participant identifier.

  • : (name)
    String

    Participant display name

  • : (type)
    ParticipantType
  • : (profile_id)
    String

    The canonical profile ID.

  • : (address)
    String

    Address of the Participant (e.g., phone number, email address)

  • : (channel)
    String

    The channel on which the message originated



107
108
109
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 107

def address
  @address
end

#channelObject

Parameters:

  • : (id)
    String

    Participant identifier.

  • : (name)
    String

    Participant display name

  • : (type)
    ParticipantType
  • : (profile_id)
    String

    The canonical profile ID.

  • : (address)
    String

    Address of the Participant (e.g., phone number, email address)

  • : (channel)
    String

    The channel on which the message originated



107
108
109
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 107

def channel
  @channel
end

#idObject

Parameters:

  • : (id)
    String

    Participant identifier.

  • : (name)
    String

    Participant display name

  • : (type)
    ParticipantType
  • : (profile_id)
    String

    The canonical profile ID.

  • : (address)
    String

    Address of the Participant (e.g., phone number, email address)

  • : (channel)
    String

    The channel on which the message originated



107
108
109
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 107

def id
  @id
end

#nameObject

Parameters:

  • : (id)
    String

    Participant identifier.

  • : (name)
    String

    Participant display name

  • : (type)
    ParticipantType
  • : (profile_id)
    String

    The canonical profile ID.

  • : (address)
    String

    Address of the Participant (e.g., phone number, email address)

  • : (channel)
    String

    The channel on which the message originated



107
108
109
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 107

def name
  @name
end

#profile_idObject

Parameters:

  • : (id)
    String

    Participant identifier.

  • : (name)
    String

    Participant display name

  • : (type)
    ParticipantType
  • : (profile_id)
    String

    The canonical profile ID.

  • : (address)
    String

    Address of the Participant (e.g., phone number, email address)

  • : (channel)
    String

    The channel on which the message originated



107
108
109
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 107

def profile_id
  @profile_id
end

#typeObject

Parameters:

  • : (id)
    String

    Participant identifier.

  • : (name)
    String

    Participant display name

  • : (type)
    ParticipantType
  • : (profile_id)
    String

    The canonical profile ID.

  • : (address)
    String

    Address of the Participant (e.g., phone number, email address)

  • : (channel)
    String

    The channel on which the message originated



107
108
109
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 107

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



116
117
118
119
120
121
122
123
124
125
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 116

def to_json(options = {})
{
        "id": @id,
        "name": @name,
        "type": @type,
        "profileId": @profile_id,
        "address": @address,
        "channel": @channel,
}.to_json(options)
end