Class: Twilio::REST::Memory::V1::RecallList::CommunicationRecipients
- Inherits:
-
Object
- Object
- Twilio::REST::Memory::V1::RecallList::CommunicationRecipients
- Defined in:
- lib/twilio-ruby/rest/memory/v1/recall.rb
Instance Attribute Summary collapse
- #address ⇒ Object
- #channel ⇒ Object
- #delivery_status ⇒ Object
- #id ⇒ Object
- #name ⇒ Object
- #profile_id ⇒ Object
- #type ⇒ Object
Instance Method Summary collapse
-
#initialize(payload) ⇒ CommunicationRecipients
constructor
A new instance of CommunicationRecipients.
- #to_json(options = {}) ⇒ Object
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
#address ⇒ Object
43 44 45 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43 def address @address end |
#channel ⇒ Object
43 44 45 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43 def channel @channel end |
#delivery_status ⇒ Object
43 44 45 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43 def delivery_status @delivery_status end |
#id ⇒ Object
43 44 45 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43 def id @id end |
#name ⇒ Object
43 44 45 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43 def name @name end |
#profile_id ⇒ Object
43 44 45 |
# File 'lib/twilio-ruby/rest/memory/v1/recall.rb', line 43 def profile_id @profile_id end |
#type ⇒ Object
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( = {}) { "id": @id, "name": @name, "type": @type, "profileId": @profile_id, "address": @address, "channel": @channel, "deliveryStatus": @delivery_status, }.to_json() end |