Class: Twilio::REST::Content::V1::ContentList::FlowsPage

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

Returns a new instance of FlowsPage.



198
199
200
201
202
203
204
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 198

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

#idObject

Parameters:



197
198
199
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 197

def id
  @id
end

#layoutObject

Parameters:



197
198
199
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 197

def layout
  @layout
end

#next_page_idObject

Parameters:



197
198
199
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 197

def next_page_id
  @next_page_id
end

#subtitleObject

Parameters:



197
198
199
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 197

def subtitle
  @subtitle
end

#titleObject

Parameters:



197
198
199
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 197

def title
  @title
end

Instance Method Details

#to_json(options = {}) ⇒ Object



205
206
207
208
209
210
211
212
213
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 205

def to_json(options = {})
{
        "id": @id,
        "next_page_id": @next_page_id,
        "title": @title,
        "subtitle": @subtitle,
        "layout": @layout,
}.to_json(options)
end