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.



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

#altObject

Returns the value of attribute alt.



69
70
71
# File 'lib/olivander/application_context.rb', line 69

def alt
  @alt
end

#urlObject

Returns the value of attribute url.



69
70
71
# File 'lib/olivander/application_context.rb', line 69

def url
  @url
end