Class: Twilio::REST::Content::V1::ContentList::FlowsPageComponentSelectItem

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

Returns a new instance of FlowsPageComponentSelectItem.



239
240
241
242
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 239

def initialize(payload)
        @id = payload["id"]
        @title = payload["title"]
end

Instance Attribute Details

#idObject

Parameters:

  • : (id)
    String
  • : (title)
    String


238
239
240
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 238

def id
  @id
end

#titleObject

Parameters:

  • : (id)
    String
  • : (title)
    String


238
239
240
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 238

def title
  @title
end

Instance Method Details

#to_json(options = {}) ⇒ Object



243
244
245
246
247
248
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 243

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