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.



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

#idObject

Parameters:



194
195
196
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194

def id
  @id
end

#layoutObject

Parameters:



194
195
196
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194

def layout
  @layout
end

#next_page_idObject

Parameters:



194
195
196
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194

def next_page_id
  @next_page_id
end

#subtitleObject

Parameters:



194
195
196
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 194

def subtitle
  @subtitle
end

#titleObject

Parameters:



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(options = {})
{
        "id": @id,
        "next_page_id": @next_page_id,
        "title": @title,
        "subtitle": @subtitle,
        "layout": @layout,
}.to_json(options)
end