Class: Twilio::REST::Memory::V1::EventList::ProfileEventRequest
- Inherits:
-
Object
- Object
- Twilio::REST::Memory::V1::EventList::ProfileEventRequest
- Defined in:
- lib/twilio-ruby/rest/memory/v1/event.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ ProfileEventRequest
constructor
A new instance of ProfileEventRequest.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ ProfileEventRequest
Returns a new instance of ProfileEventRequest.
58 59 60 61 |
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 58 def initialize(payload) @type = payload["type"] @events = payload["events"] end |
Instance Attribute Details
#events ⇒ Object
57 58 59 |
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 57 def events @events end |
#type ⇒ Object
57 58 59 |
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 57 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
62 63 64 65 66 67 |
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 62 def to_json( = {}) { "type": @type, "events": @events, }.to_json() end |