Class: DesignSystem::Generic::ActionLinkComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/design_system/generic/action_link_component.rb

Overview

Action links are calls-to-action signposting the start of a digital service. Implementation differs noticeably between brands so this is mostly a contract — both brand subclasses override call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::CssHelper

#css_class_options_merge

Methods included from BrandDerivable

#brand

Constructor Details

#initialize(name = nil, options = nil, html_options = nil) ⇒ ActionLinkComponent

Returns a new instance of ActionLinkComponent.



7
8
9
10
11
12
# File 'app/components/design_system/generic/action_link_component.rb', line 7

def initialize(name = nil, options = nil, html_options = nil)
  super()
  @name = name
  @options = options || {}
  @html_options = html_options || {}
end

Instance Attribute Details

#html_optionsObject (readonly)

Returns the value of attribute html_options.



14
15
16
# File 'app/components/design_system/generic/action_link_component.rb', line 14

def html_options
  @html_options
end

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'app/components/design_system/generic/action_link_component.rb', line 14

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



14
15
16
# File 'app/components/design_system/generic/action_link_component.rb', line 14

def options
  @options
end