Class: Twilio::REST::Memory::V1::RecallList::CommunicationRecipients

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) ⇒ CommunicationRecipients

Returns a new instance of CommunicationRecipients.



44
45
46
47
48
49
50
51
52
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 44

def initialize(payload)
        @id = payload["id"]
        @name = payload["name"]
        @type = payload["type"]
        @profile_id = payload["profile_id"]
        @address = payload["address"]
        @channel = payload["channel"]
        @delivery_status = payload["delivery_status"]
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

  • : (delivery_status)
    String

    Delivery status of the Communication to this recipient



43
44
45
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43

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

  • : (delivery_status)
    String

    Delivery status of the Communication to this recipient



43
44
45
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43

def channel
  @channel
end

#delivery_statusObject

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

  • : (delivery_status)
    String

    Delivery status of the Communication to this recipient



43
44
45
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43

def delivery_status
  @delivery_status
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

  • : (delivery_status)
    String

    Delivery status of the Communication to this recipient



43
44
45
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43

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

  • : (delivery_status)
    String

    Delivery status of the Communication to this recipient



43
44
45
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43

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

  • : (delivery_status)
    String

    Delivery status of the Communication to this recipient



43
44
45
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43

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

  • : (delivery_status)
    String

    Delivery status of the Communication to this recipient



43
44
45
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



53
54
55
56
57
58
59
60
61
62
63
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 53

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