Class: FlowChat::Config::InstagramConfig
- Inherits:
-
Object
- Object
- FlowChat::Config::InstagramConfig
- Defined in:
- lib/flow_chat/config.rb
Instance Attribute Summary collapse
-
#api_base_url ⇒ Object
Both hosts writable, and separately: the two integration paths are configured independently at Meta, so an application moving one to a new version has not necessarily moved the other.
-
#instagram_login_api_base_url ⇒ Object
Both hosts writable, and separately: the two integration paths are configured independently at Meta, so an application moving one to a new version has not necessarily moved the other.
-
#max_button_title ⇒ Object
readonly
Returns the value of attribute max_button_title.
-
#max_buttons_per_element ⇒ Object
readonly
Returns the value of attribute max_buttons_per_element.
-
#max_carousel_elements ⇒ Object
readonly
Returns the value of attribute max_carousel_elements.
-
#max_element_title ⇒ Object
readonly
Returns the value of attribute max_element_title.
-
#max_quick_replies ⇒ Object
readonly
Returns the value of attribute max_quick_replies.
-
#max_quick_reply_title ⇒ Object
readonly
Returns the value of attribute max_quick_reply_title.
-
#max_text_length ⇒ Object
readonly
Returns the value of attribute max_text_length.
Instance Method Summary collapse
-
#initialize ⇒ InstagramConfig
constructor
A new instance of InstagramConfig.
Constructor Details
#initialize ⇒ InstagramConfig
Returns a new instance of InstagramConfig.
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/flow_chat/config.rb', line 183 def initialize # Facebook Login path: the linked Page speaks through the general Graph API host. @api_base_url = "https://graph.facebook.com/v23.0" # Instagram Login path: the Instagram professional account speaks through its # own host instead, with no Facebook Page in the picture at all. @instagram_login_api_base_url = "https://graph.instagram.com/v23.0" # Meta: "Message text must be UTF-8 and be 1,000 bytes or less." @max_text_length = 1000 @max_quick_replies = 13 @max_quick_reply_title = 20 @max_carousel_elements = 10 @max_buttons_per_element = 3 @max_button_title = 20 @max_element_title = 80 end |
Instance Attribute Details
#api_base_url ⇒ Object
Both hosts writable, and separately: the two integration paths are configured independently at Meta, so an application moving one to a new version has not necessarily moved the other.
178 179 180 |
# File 'lib/flow_chat/config.rb', line 178 def api_base_url @api_base_url end |
#instagram_login_api_base_url ⇒ Object
Both hosts writable, and separately: the two integration paths are configured independently at Meta, so an application moving one to a new version has not necessarily moved the other.
178 179 180 |
# File 'lib/flow_chat/config.rb', line 178 def instagram_login_api_base_url @instagram_login_api_base_url end |
#max_button_title ⇒ Object (readonly)
Returns the value of attribute max_button_title.
179 180 181 |
# File 'lib/flow_chat/config.rb', line 179 def @max_button_title end |
#max_buttons_per_element ⇒ Object (readonly)
Returns the value of attribute max_buttons_per_element.
179 180 181 |
# File 'lib/flow_chat/config.rb', line 179 def @max_buttons_per_element end |
#max_carousel_elements ⇒ Object (readonly)
Returns the value of attribute max_carousel_elements.
179 180 181 |
# File 'lib/flow_chat/config.rb', line 179 def max_carousel_elements @max_carousel_elements end |
#max_element_title ⇒ Object (readonly)
Returns the value of attribute max_element_title.
179 180 181 |
# File 'lib/flow_chat/config.rb', line 179 def max_element_title @max_element_title end |
#max_quick_replies ⇒ Object (readonly)
Returns the value of attribute max_quick_replies.
179 180 181 |
# File 'lib/flow_chat/config.rb', line 179 def max_quick_replies @max_quick_replies end |
#max_quick_reply_title ⇒ Object (readonly)
Returns the value of attribute max_quick_reply_title.
179 180 181 |
# File 'lib/flow_chat/config.rb', line 179 def max_quick_reply_title @max_quick_reply_title end |
#max_text_length ⇒ Object (readonly)
Returns the value of attribute max_text_length.
179 180 181 |
# File 'lib/flow_chat/config.rb', line 179 def max_text_length @max_text_length end |