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

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(payload) ⇒ WhatsappFlows

Returns a new instance of WhatsappFlows.



619
620
621
622
623
624
625
626
627
628
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 619

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:



618
619
620
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 618

def body
  @body
end

#button_textObject

Parameters:



618
619
620
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 618

def button_text
  @button_text
end

#flow_first_page_idObject

Parameters:



618
619
620
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 618

def flow_first_page_id
  @flow_first_page_id
end

#flow_idObject

Parameters:



618
619
620
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 618

def flow_id
  @flow_id
end

#flow_tokenObject

Parameters:



618
619
620
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 618

def flow_token
  @flow_token
end

#is_flow_first_page_endpointObject

Parameters:



618
619
620
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 618

def is_flow_first_page_endpoint
  @is_flow_first_page_endpoint
end

#media_urlObject

Parameters:



618
619
620
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 618

def media_url
  @media_url
end

#subtitleObject

Parameters:



618
619
620
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 618

def subtitle
  @subtitle
end

Instance Method Details

#to_json(options = {}) ⇒ Object



629
630
631
632
633
634
635
636
637
638
639
640
# File 'lib/twilio-ruby/rest/content/v1/content.rb', line 629

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