Class: Twilio::REST::Content::V1::ContentList::TwilioQuickReply

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) ⇒ TwilioQuickReply

Returns a new instance of TwilioQuickReply.



457
458
459
460
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 457

def initialize(payload)
        @body = payload["body"]
        @actions = payload["actions"]
end

Instance Attribute Details

#actionsObject

Parameters:

  • : (body)
    String
  • : (actions)
    Array<ContentList.QuickReplyAction>


456
457
458
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 456

def actions
  @actions
end

#bodyObject

Parameters:

  • : (body)
    String
  • : (actions)
    Array<ContentList.QuickReplyAction>


456
457
458
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 456

def body
  @body
end

Instance Method Details

#to_json(options = {}) ⇒ Object



461
462
463
464
465
466
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 461

def to_json(options = {})
{
        "body": @body,
        "actions": @actions,
}.to_json(options)
end