Class: Twilio::REST::Content::V1::ContentList::TwilioFlows

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

Returns a new instance of TwilioFlows.



379
380
381
382
383
384
385
386
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 379

def initialize(payload)
        @body = payload["body"]
        @button_text = payload["button_text"]
        @subtitle = payload["subtitle"]
        @media_url = payload["media_url"]
        @pages = payload["pages"]
        @type = payload["type"]
end

Instance Attribute Details

#bodyObject

Parameters:



378
379
380
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378

def body
  @body
end

#button_textObject

Parameters:



378
379
380
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378

def button_text
  @button_text
end

#media_urlObject

Parameters:



378
379
380
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378

def media_url
  @media_url
end

#pagesObject

Parameters:



378
379
380
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378

def pages
  @pages
end

#subtitleObject

Parameters:



378
379
380
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378

def subtitle
  @subtitle
end

#typeObject

Parameters:



378
379
380
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 378

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



387
388
389
390
391
392
393
394
395
396
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 387

def to_json(options = {})
{
        "body": @body,
        "button_text": @button_text,
        "subtitle": @subtitle,
        "media_url": @media_url,
        "pages": @pages,
        "type": @type,
}.to_json(options)
end