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.
71 72 73 74 |
# File 'lib/olivander/application_context.rb', line 71 def initialize(**kwargs) self.url = kwargs[:url] || ENV['OLIVANDER_LOGO_URL'] || DEFAULT_LOGO_URL self.alt = kwargs[:alt] || ENV['OLIVANDER_LOGO_ALT'] || DEFAULT_LOGO_ALT end |
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
69 70 71 |
# File 'lib/olivander/application_context.rb', line 69 def alt @alt end |
#url ⇒ Object
Returns the value of attribute url.
69 70 71 |
# File 'lib/olivander/application_context.rb', line 69 def url @url end |