Class: AblyUi::Core::MeganavSearchSuggestions

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
Util
Defined in:
lib/ably_ui/core/meganav_search_suggestions/meganav_search_suggestions.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:, display_support_link: true) ⇒ MeganavSearchSuggestions

Returns a new instance of MeganavSearchSuggestions.



8
9
10
11
# File 'lib/ably_ui/core/meganav_search_suggestions/meganav_search_suggestions.rb', line 8

def initialize(url_base:, display_support_link: true)
  @url_base = url_base
  @display_support_link = display_support_link
end

Instance Attribute Details

#url_baseObject (readonly)

Returns the value of attribute url_base.



6
7
8
# File 'lib/ably_ui/core/meganav_search_suggestions/meganav_search_suggestions.rb', line 6

def url_base
  @url_base
end

Instance Method Details

#display_support_link?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/ably_ui/core/meganav_search_suggestions/meganav_search_suggestions.rb', line 13

def display_support_link?
  @display_support_link
end