Class: GovukComponent::FooterComponent
- Defined in:
- app/components/govuk_component/footer_component.rb
Instance Attribute Summary collapse
-
#copyright_text ⇒ Object
readonly
Returns the value of attribute copyright_text.
-
#copyright_url ⇒ Object
readonly
Returns the value of attribute copyright_url.
-
#custom_container_classes ⇒ Object
readonly
Returns the value of attribute custom_container_classes.
-
#meta_items ⇒ Object
readonly
Returns the value of attribute meta_items.
-
#meta_items_title ⇒ Object
readonly
Returns the value of attribute meta_items_title.
-
#meta_licence ⇒ Object
readonly
Returns the value of attribute meta_licence.
-
#meta_text ⇒ Object
readonly
Returns the value of attribute meta_text.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(classes: [], container_classes: [], container_html_attributes: {}, copyright_text: config.default_footer_copyright_text, copyright_url: config.default_footer_copyright_url, html_attributes: {}, meta_items: {}, meta_items_title: "Support links", meta_licence: nil, meta_text: config.default_footer_component_meta_text, meta_classes: [], meta_html_attributes: {}) ⇒ FooterComponent
constructor
A new instance of FooterComponent.
Methods inherited from Base
Constructor Details
#initialize(classes: [], container_classes: [], container_html_attributes: {}, copyright_text: config.default_footer_copyright_text, copyright_url: config.default_footer_copyright_url, html_attributes: {}, meta_items: {}, meta_items_title: "Support links", meta_licence: nil, meta_text: config.default_footer_component_meta_text, meta_classes: [], meta_html_attributes: {}) ⇒ FooterComponent
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'app/components/govuk_component/footer_component.rb', line 12 def initialize( classes: [], container_classes: [], container_html_attributes: {}, copyright_text: config., copyright_url: config., html_attributes: {}, meta_items: {}, meta_items_title: "Support links", meta_licence: nil, meta_text: config., meta_classes: [], meta_html_attributes: {} ) = = () = = = = @copyright_text = copyright_text @copyright_url = copyright_url @custom_container_classes = container_classes @custom_container_html_attributes = container_html_attributes super(classes:, html_attributes:) end |
Instance Attribute Details
#copyright_text ⇒ Object (readonly)
Returns the value of attribute copyright_text.
10 11 12 |
# File 'app/components/govuk_component/footer_component.rb', line 10 def copyright_text @copyright_text end |
#copyright_url ⇒ Object (readonly)
Returns the value of attribute copyright_url.
10 11 12 |
# File 'app/components/govuk_component/footer_component.rb', line 10 def copyright_url @copyright_url end |
#custom_container_classes ⇒ Object (readonly)
Returns the value of attribute custom_container_classes.
10 11 12 |
# File 'app/components/govuk_component/footer_component.rb', line 10 def custom_container_classes @custom_container_classes end |
#meta_items ⇒ Object (readonly)
Returns the value of attribute meta_items.
10 11 12 |
# File 'app/components/govuk_component/footer_component.rb', line 10 def end |
#meta_items_title ⇒ Object (readonly)
Returns the value of attribute meta_items_title.
10 11 12 |
# File 'app/components/govuk_component/footer_component.rb', line 10 def end |
#meta_licence ⇒ Object (readonly)
Returns the value of attribute meta_licence.
10 11 12 |
# File 'app/components/govuk_component/footer_component.rb', line 10 def end |
#meta_text ⇒ Object (readonly)
Returns the value of attribute meta_text.
10 11 12 |
# File 'app/components/govuk_component/footer_component.rb', line 10 def end |