Class: Olivander::ApplicationContext::LoginLogo
- Inherits:
-
Object
- Object
- Olivander::ApplicationContext::LoginLogo
- 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) ⇒ LoginLogo
constructor
A new instance of LoginLogo.
Constructor Details
#initialize(**kwargs) ⇒ LoginLogo
Returns a new instance of LoginLogo.
48 49 50 51 |
# File 'lib/olivander/application_context.rb', line 48 def initialize(**kwargs) self.url = kwargs[:url] || ENV['OLIVANDER_LOGIN_LOGO_URL'] || '/images/olivander_login_logo.png' self.alt = kwargs[:alt] || ENV['OLIVANDER_LOGIN_LOGO_ALT'] || 'Login Logo Image' end |
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
46 47 48 |
# File 'lib/olivander/application_context.rb', line 46 def alt @alt end |
#url ⇒ Object
Returns the value of attribute url.
46 47 48 |
# File 'lib/olivander/application_context.rb', line 46 def url @url end |