Class: Twilio::REST::Content::V1::ContentList::QuickReplyAction

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ QuickReplyAction

Returns a new instance of QuickReplyAction.



284
285
286
287
288
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 284

def initialize(payload)
        @type = payload["type"]
        @title = payload["title"]
        @id = payload["id"]
end

Instance Attribute Details

#id ⇒ Object

Parameters:

  • : (type) —

    [QuickReplyActionType]

  • : (title) —

    [String]

  • : (id) —

    [String]



283
284
285
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 283

def id
  @id
end

#title ⇒ Object

Parameters:

  • : (type) —

    [QuickReplyActionType]

  • : (title) —

    [String]

  • : (id) —

    [String]



283
284
285
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 283

def title
  @title
end

#type ⇒ Object

Parameters:

  • : (type) —

    [QuickReplyActionType]

  • : (title) —

    [String]

  • : (id) —

    [String]



283
284
285
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 283

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



289
290
291
292
293
294
295
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 289

def to_json(options = {})
{
        "type": @type,
        "title": @title,
        "id": @id,
}.to_json(options)
end