Class: Twilio::REST::Memory::V1::EventList::ProfileEventRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#eventsObject

Parameters:

  • : (type)
    String

    The type of event being sent.

  • : (events)
    Array<EventList.ProfileEventRequestEvents>


57
58
59
# File 'lib/twilio-ruby/rest/memory/v1/event.rb', line 57

def events
  @events
end

#typeObject

Parameters:

  • : (type)
    String

    The type of event being sent.

  • : (events)
    Array<EventList.ProfileEventRequestEvents>


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(options = {})
{
        "type": @type,
        "events": @events,
}.to_json(options)
end