Class: Polaris::Logo
- Inherits:
-
Object
- Object
- Polaris::Logo
- Defined in:
- app/components/polaris/logo.rb
Instance Attribute Summary collapse
-
#alt ⇒ Object
readonly
Returns the value of attribute alt.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(src:, url: nil, alt: nil, width: "125px") ⇒ Logo
constructor
A new instance of Logo.
Constructor Details
#initialize(src:, url: nil, alt: nil, width: "125px") ⇒ Logo
Returns a new instance of Logo.
7 8 9 10 11 12 |
# File 'app/components/polaris/logo.rb', line 7 def initialize(src:, url: nil, alt: nil, width: "125px") @url = url @src = src @alt = alt @width = width end |
Instance Attribute Details
#alt ⇒ Object (readonly)
Returns the value of attribute alt.
4 5 6 |
# File 'app/components/polaris/logo.rb', line 4 def alt @alt end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
2 3 4 |
# File 'app/components/polaris/logo.rb', line 2 def src @src end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'app/components/polaris/logo.rb', line 3 def url @url end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
5 6 7 |
# File 'app/components/polaris/logo.rb', line 5 def width @width end |