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

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

Returns a new instance of TwilioFlows.



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

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

#body ⇒ Object

Parameters:



387
388
389
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 387

def body
  @body
end

#button_text ⇒ Object

Parameters:



387
388
389
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 387

def button_text
  @button_text
end

#media_url ⇒ Object

Parameters:



387
388
389
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 387

def media_url
  @media_url
end

#pages ⇒ Object

Parameters:



387
388
389
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 387

def pages
  @pages
end

#subtitle ⇒ Object

Parameters:



387
388
389
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 387

def subtitle
  @subtitle
end

#type ⇒ Object

Parameters:



387
388
389
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 387

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



396
397
398
399
400
401
402
403
404
405
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 396

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