Class: AblyUi::Core::FeaturedLink

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

Instance Method Summary collapse

Constructor Details

#initialize(url:, text_size: 'text-menu3', icon_color: 'text-cool-black', flush: false, additional_css: '') ⇒ FeaturedLink

Returns a new instance of FeaturedLink.



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/ably_ui/core/featured_link/featured_link.rb', line 4

def initialize(
  url:,
  text_size: 'text-menu3',
  icon_color: 'text-cool-black',
  flush: false,
  additional_css: ''
)
  @url = url
  @text_size = text_size
  @icon_color = icon_color
  @flush = flush
  @additional_css = additional_css
end