Class: Twilio::REST::Content::V1::ContentList::FlowsPageComponent
- Inherits:
-
Object
- Object
- Twilio::REST::Content::V1::ContentList::FlowsPageComponent
- Defined in:
- lib/twilio-ruby/rest/content/v1/content.rb,
lib/twilio-ruby/rest/content/v1/content.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ FlowsPageComponent
constructor
A new instance of FlowsPageComponent.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ FlowsPageComponent
Returns a new instance of FlowsPageComponent.
245 246 247 248 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 245 def initialize(payload) @label = payload["label"] @type = payload["type"] end |
Instance Attribute Details
#label ⇒ Object
244 245 246 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 244 def label @label end |
#type ⇒ Object
244 245 246 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 244 def type @type end |
Instance Method Details
#to_json(options = {}) ⇒ Object
249 250 251 252 253 254 |
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 249 def to_json( = {}) { "label": @label, "type": @type, }.to_json() end |