Class: Olivander::ApplicationContext::Logo
- Inherits:
-
Object
- Object
- Olivander::ApplicationContext::Logo
- Defined in:
- lib/olivander/application_context.rb
Instance Attribute Summary collapse
-
#alt ⇒ Object
Returns the value of attribute alt.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Logo
constructor
A new instance of Logo.
Constructor Details
#initialize(**kwargs) ⇒ Logo
Returns a new instance of Logo.
39 40 41 42 |
# File 'lib/olivander/application_context.rb', line 39 def initialize(**kwargs) self.url = kwargs[:url] || ENV['OLIVANDER_LOGO_URL'] || '/images/olivander_logo.png' self.alt = kwargs[:alt] || ENV['OLIVANDER_LOGO_ALT'] || 'Logo Image' end |
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
37 38 39 |
# File 'lib/olivander/application_context.rb', line 37 def alt @alt end |
#url ⇒ Object
Returns the value of attribute url.
37 38 39 |
# File 'lib/olivander/application_context.rb', line 37 def url @url end |