Class: GovukComponent::StartNowButton
- Defined in:
- app/components/govuk_component/start_now_button.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
Returns the value of attribute href.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes included from Traits::CustomHtmlAttributes
Instance Method Summary collapse
-
#initialize(text:, href:, classes: [], html_attributes: {}) ⇒ StartNowButton
constructor
A new instance of StartNowButton.
Methods inherited from Base
Methods included from Traits::CustomClasses
Constructor Details
#initialize(text:, href:, classes: [], html_attributes: {}) ⇒ StartNowButton
Returns a new instance of StartNowButton.
4 5 6 7 8 9 |
# File 'app/components/govuk_component/start_now_button.rb', line 4 def initialize(text:, href:, classes: [], html_attributes: {}) super(classes: classes, html_attributes: html_attributes) @text = text @href = href end |
Instance Attribute Details
#href ⇒ Object
Returns the value of attribute href.
2 3 4 |
# File 'app/components/govuk_component/start_now_button.rb', line 2 def href @href end |
#text ⇒ Object
Returns the value of attribute text.
2 3 4 |
# File 'app/components/govuk_component/start_now_button.rb', line 2 def text @text end |