Class: GovukComponent::Footer
- Includes:
- ViewComponent::Slotable
- Defined in:
- app/components/govuk_component/footer.rb
Instance Attribute Summary collapse
-
#copyright ⇒ Object
Returns the value of attribute copyright.
-
#meta_items ⇒ Object
Returns the value of attribute meta_items.
-
#meta_items_title ⇒ Object
Returns the value of attribute meta_items_title.
-
#meta_licence ⇒ Object
Returns the value of attribute meta_licence.
Attributes included from Traits::CustomHtmlAttributes
Instance Method Summary collapse
-
#initialize(meta_items: {}, meta_items_title: "Support links", meta_licence: nil, classes: [], html_attributes: {}, copyright_text: default_copright_text, copyright_url: default_copyright_url) ⇒ Footer
constructor
A new instance of Footer.
Methods inherited from Base
Methods included from Traits::CustomClasses
Constructor Details
#initialize(meta_items: {}, meta_items_title: "Support links", meta_licence: nil, classes: [], html_attributes: {}, copyright_text: default_copright_text, copyright_url: default_copyright_url) ⇒ Footer
Returns a new instance of Footer.
12 13 14 15 16 17 18 19 |
# File 'app/components/govuk_component/footer.rb', line 12 def initialize(meta_items: {}, meta_items_title: "Support links", meta_licence: nil, classes: [], html_attributes: {}, copyright_text: default_copright_text, copyright_url: default_copyright_url) super(classes: classes, html_attributes: html_attributes) @meta_items = () @meta_items_title = @meta_licence = @copyright = build_copyright(copyright_text, copyright_url) end |
Instance Attribute Details
#copyright ⇒ Object
Returns the value of attribute copyright.
10 11 12 |
# File 'app/components/govuk_component/footer.rb', line 10 def copyright @copyright end |
#meta_items ⇒ Object
Returns the value of attribute meta_items.
10 11 12 |
# File 'app/components/govuk_component/footer.rb', line 10 def @meta_items end |
#meta_items_title ⇒ Object
Returns the value of attribute meta_items_title.
10 11 12 |
# File 'app/components/govuk_component/footer.rb', line 10 def @meta_items_title end |
#meta_licence ⇒ Object
Returns the value of attribute meta_licence.
10 11 12 |
# File 'app/components/govuk_component/footer.rb', line 10 def @meta_licence end |