Class: AblyUi::Core::FeaturedLink
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- AblyUi::Core::FeaturedLink
- Defined in:
- lib/ably_ui/core/featured_link/featured_link.rb
Instance Method Summary collapse
-
#initialize(url:, text_size: 'text-p2', icon_color: 'text-cool-black', flush: false, reverse: false, additional_css: '') ⇒ FeaturedLink
constructor
A new instance of FeaturedLink.
Constructor Details
#initialize(url:, text_size: 'text-p2', icon_color: 'text-cool-black', flush: false, reverse: false, additional_css: '') ⇒ FeaturedLink
Returns a new instance of FeaturedLink.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ably_ui/core/featured_link/featured_link.rb', line 4 def initialize( url:, text_size: 'text-p2', icon_color: 'text-cool-black', flush: false, reverse: false, additional_css: '' ) @url = url @text_size = text_size @icon_color = icon_color @flush = flush @reverse = reverse @additional_css = additional_css end |