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

Inherits:
Object
  • Object
show all
Defined in:
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.



162
163
164
165
166
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 162

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

Instance Attribute Details

#idObject

Parameters:

  • : (type)
    QuickReplyActionType
  • : (title)
    String
  • : (id)
    String


161
162
163
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 161

def id
  @id
end

#titleObject

Parameters:

  • : (type)
    QuickReplyActionType
  • : (title)
    String
  • : (id)
    String


161
162
163
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 161

def title
  @title
end

#typeObject

Parameters:

  • : (type)
    QuickReplyActionType
  • : (title)
    String
  • : (id)
    String


161
162
163
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 161

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



167
168
169
170
171
172
173
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 167

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