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