Class: Olivander::ApplicationContext::Logo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#altObject

Returns the value of attribute alt.



37
38
39
# File 'lib/olivander/application_context.rb', line 37

def alt
  @alt
end

#urlObject

Returns the value of attribute url.



37
38
39
# File 'lib/olivander/application_context.rb', line 37

def url
  @url
end