Class: Twilio::REST::Content::V1::ContentList::WhatsappFlows

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

Returns a new instance of WhatsappFlows.



597
598
599
600
601
602
603
604
605
606
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 597

def initialize(payload)
        @body = payload["body"]
        @button_text = payload["button_text"]
        @subtitle = payload["subtitle"]
        @media_url = payload["media_url"]
        @flow_id = payload["flow_id"]
        @flow_token = payload["flow_token"]
        @flow_first_page_id = payload["flow_first_page_id"]
        @is_flow_first_page_endpoint = payload["is_flow_first_page_endpoint"]
end

Instance Attribute Details

#bodyObject

Parameters:



596
597
598
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596

def body
  @body
end

#button_textObject

Parameters:



596
597
598
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596

def button_text
  @button_text
end

#flow_first_page_idObject

Parameters:



596
597
598
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596

def flow_first_page_id
  @flow_first_page_id
end

#flow_idObject

Parameters:



596
597
598
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596

def flow_id
  @flow_id
end

#flow_tokenObject

Parameters:



596
597
598
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596

def flow_token
  @flow_token
end

#is_flow_first_page_endpointObject

Parameters:



596
597
598
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596

def is_flow_first_page_endpoint
  @is_flow_first_page_endpoint
end

#media_urlObject

Parameters:



596
597
598
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596

def media_url
  @media_url
end

#subtitleObject

Parameters:



596
597
598
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 596

def subtitle
  @subtitle
end

Instance Method Details

#to_json(options = {}) ⇒ Object



607
608
609
610
611
612
613
614
615
616
617
618
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 607

def to_json(options = {})
{
        "body": @body,
        "button_text": @button_text,
        "subtitle": @subtitle,
        "media_url": @media_url,
        "flow_id": @flow_id,
        "flow_token": @flow_token,
        "flow_first_page_id": @flow_first_page_id,
        "is_flow_first_page_endpoint": @is_flow_first_page_endpoint,
}.to_json(options)
end