Class: Olivander::ApplicationContext::LoginLogo

Inherits:
Object
  • Object
show all
Defined in:
lib/olivander/application_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#altObject

Returns the value of attribute alt.



46
47
48
# File 'lib/olivander/application_context.rb', line 46

def alt
  @alt
end

#urlObject

Returns the value of attribute url.



46
47
48
# File 'lib/olivander/application_context.rb', line 46

def url
  @url
end