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.
195 196 197 198 199 200 201 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 195 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
194 195 196 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194 def id @id end |
#layout ⇒ Object
194 195 196 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194 def layout @layout end |
#next_page_id ⇒ Object
194 195 196 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194 def next_page_id @next_page_id end |
#subtitle ⇒ Object
194 195 196 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194 def subtitle @subtitle end |
#title ⇒ Object
194 195 196 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194 def title @title end |
Instance Method Details
#to_json(options = {}) ⇒ Object
202 203 204 205 206 207 208 209 210 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 202 def to_json( = {}) { "id": @id, "next_page_id": @next_page_id, "title": @title, "subtitle": @subtitle, "layout": @layout, }.to_json() end |