Class: Olivander::ApplicationContext::Company
- Inherits:
-
Object
- Object
- Olivander::ApplicationContext::Company
- Defined in:
- lib/olivander/application_context.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Company
constructor
A new instance of Company.
Constructor Details
#initialize(**kwargs) ⇒ Company
Returns a new instance of Company.
89 90 91 92 |
# File 'lib/olivander/application_context.rb', line 89 def initialize(**kwargs) self.url = kwargs[:url] || ENV['OLIVANDER_COMPANY_URL'] || DEFAULT_COMPANY_URL self.name = kwargs[:name] || ENV['OLIVANDER_COMPANY_NAME'] || DEFAULT_COMPANY_ALT end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
87 88 89 |
# File 'lib/olivander/application_context.rb', line 87 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
87 88 89 |
# File 'lib/olivander/application_context.rb', line 87 def url @url end |