Class: Twilio::REST::Content::V1::ContentList::FlowsPageComponent

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

Returns a new instance of FlowsPageComponent.



220
221
222
223
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 220

def initialize(payload)
        @label = payload["label"]
        @type = payload["type"]
end

Instance Attribute Details

#labelObject

Parameters:



219
220
221
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 219

def label
  @label
end

#typeObject

Parameters:



219
220
221
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 219

def type
  @type
end

Instance Method Details

#to_json(options = {}) ⇒ Object



224
225
226
227
228
229
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 224

def to_json(options = {})
{
        "label": @label,
        "type": @type,
}.to_json(options)
end