Class: AblyUi::Core::FeatureFooter

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
Util
Defined in:
lib/ably_ui/core/feature_footer/feature_footer.rb

Constant Summary

Constants included from Util

Util::DEFAULT_URL_BASE

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (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_labelObject (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_labelObject (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

#subtitleObject (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

#titleObject (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_baseObject (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