Class: AblyUi::Core::FeatureFooter
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AblyUi::Core::FeatureFooter
- Includes:
- Util
- Defined in:
- lib/ably_ui/core/feature_footer/feature_footer.rb
Constant Summary
Constants included from Util
Instance Attribute Summary collapse
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#live_chat_disabled_label ⇒ Object
readonly
Returns the value of attribute live_chat_disabled_label.
-
#live_chat_label ⇒ Object
readonly
Returns the value of attribute live_chat_label.
-
#subtitle ⇒ Object
readonly
Returns the value of attribute subtitle.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url_base ⇒ Object
readonly
Returns the value of attribute url_base.
Instance Method Summary collapse
-
#initialize(url_base: AblyUi::Core::Util::DEFAULT_URL_BASE, image_url: nil, title: 'Talk to our technical team', subtitle: "If you're having technical or account issues just get in touch.", live_chat_label: 'Start a live chat', live_chat_disabled_label: 'Live chat unavailable') ⇒ FeatureFooter
constructor
A new instance of FeatureFooter.
Methods included from Util
#abs_url, #append_random_postfix
Constructor Details
#initialize(url_base: AblyUi::Core::Util::DEFAULT_URL_BASE, image_url: nil, title: 'Talk to our technical team', subtitle: "If you're having technical or account issues just get in touch.", live_chat_label: 'Start a live chat', live_chat_disabled_label: 'Live chat unavailable') ⇒ FeatureFooter
Returns a new instance of FeatureFooter.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ably_ui/core/feature_footer/feature_footer.rb', line 13 def initialize( url_base: AblyUi::Core::Util::DEFAULT_URL_BASE, image_url: nil, title: 'Talk to our technical team', subtitle: "If you're having technical or account issues just get in touch.", live_chat_label: 'Start a live chat', live_chat_disabled_label: 'Live chat unavailable' ) @url_base = url_base @image_url = image_url @title = title @subtitle = subtitle @live_chat_label = live_chat_label @live_chat_disabled_label = live_chat_disabled_label end |
Instance Attribute Details
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
6 7 8 |
# File 'lib/ably_ui/core/feature_footer/feature_footer.rb', line 6 def image_url @image_url end |
#live_chat_disabled_label ⇒ Object (readonly)
Returns the value of attribute live_chat_disabled_label.
6 7 8 |
# File 'lib/ably_ui/core/feature_footer/feature_footer.rb', line 6 def live_chat_disabled_label @live_chat_disabled_label end |
#live_chat_label ⇒ Object (readonly)
Returns the value of attribute live_chat_label.
6 7 8 |
# File 'lib/ably_ui/core/feature_footer/feature_footer.rb', line 6 def live_chat_label @live_chat_label end |
#subtitle ⇒ Object (readonly)
Returns the value of attribute subtitle.
6 7 8 |
# File 'lib/ably_ui/core/feature_footer/feature_footer.rb', line 6 def subtitle @subtitle end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'lib/ably_ui/core/feature_footer/feature_footer.rb', line 6 def title @title end |
#url_base ⇒ Object (readonly)
Returns the value of attribute url_base.
6 7 8 |
# File 'lib/ably_ui/core/feature_footer/feature_footer.rb', line 6 def url_base @url_base end |