Class: Twilio::REST::Content::V1::ContentList::FlowsPage
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::FlowsPage
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ FlowsPage
constructor
A new instance of FlowsPage.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ FlowsPage
Returns a new instance of FlowsPage.
201 202 203 204 205 206 207 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 201 def initialize(payload) @id = payload["id"] @next_page_id = payload["next_page_id"] @title = payload["title"] @subtitle = payload["subtitle"] @layout = payload["layout"] end |
Instance Attribute Details
#id ⇒ Object
200 201 202 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 200 def id @id end |
#layout ⇒ Object
200 201 202 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 200 def layout @layout end |
#next_page_id ⇒ Object
200 201 202 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 200 def next_page_id @next_page_id end |
#subtitle ⇒ Object
200 201 202 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 200 def subtitle @subtitle end |
#title ⇒ Object
200 201 202 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 200 def title @title end |
Instance Method Details
#to_json(options = {}) ⇒ Object
208 209 210 211 212 213 214 215 216 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 208 def to_json( = {}) { "id": @id, "next_page_id": @next_page_id, "title": @title, "subtitle": @subtitle, "layout": @layout, }.to_json() end |