Class: AblyUi::Core::MeganavItemsMobile
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AblyUi::Core::MeganavItemsMobile
- Includes:
- MeganavConfig, Util
- Defined in:
- lib/ably_ui/core/meganav_items_mobile/meganav_items_mobile.rb
Constant Summary
Constants included from Util
Instance Attribute Summary collapse
-
#login_link ⇒ Object
readonly
Returns the value of attribute login_link.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#url_base ⇒ Object
readonly
Returns the value of attribute url_base.
Instance Method Summary collapse
- #display_hr(panel_id) ⇒ Object
-
#initialize(session_data:, theme_name:, login_link:, url_base:) ⇒ MeganavItemsMobile
constructor
A new instance of MeganavItemsMobile.
Methods included from Util
#abs_url, #append_random_postfix
Methods included from MeganavConfig
#panels, #theme, #theme_setup, #themes
Constructor Details
#initialize(session_data:, theme_name:, login_link:, url_base:) ⇒ MeganavItemsMobile
Returns a new instance of MeganavItemsMobile.
9 10 11 12 13 14 |
# File 'lib/ably_ui/core/meganav_items_mobile/meganav_items_mobile.rb', line 9 def initialize(session_data:, theme_name:, login_link:, url_base:) @theme_name = theme_name @session_data = session_data @login_link = login_link @url_base = url_base end |
Instance Attribute Details
#login_link ⇒ Object (readonly)
Returns the value of attribute login_link.
7 8 9 |
# File 'lib/ably_ui/core/meganav_items_mobile/meganav_items_mobile.rb', line 7 def login_link @login_link end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/ably_ui/core/meganav_items_mobile/meganav_items_mobile.rb', line 7 def @options end |
#url_base ⇒ Object (readonly)
Returns the value of attribute url_base.
7 8 9 |
# File 'lib/ably_ui/core/meganav_items_mobile/meganav_items_mobile.rb', line 7 def url_base @url_base end |
Instance Method Details
#display_hr(panel_id) ⇒ Object
16 17 18 |
# File 'lib/ably_ui/core/meganav_items_mobile/meganav_items_mobile.rb', line 16 def display_hr(panel_id) %w[company-panel developers-panel].include?(panel_id) end |