Class: Olivander::ApplicationContext::Company
- Inherits:
-
Object
- Object
- Olivander::ApplicationContext::Company
- Defined in:
- lib/olivander/application_context.rb
Overview
DTO for information about the Company for which this app is deployed
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.
100 101 102 103 |
# File 'lib/olivander/application_context.rb', line 100 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.
98 99 100 |
# File 'lib/olivander/application_context.rb', line 98 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
98 99 100 |
# File 'lib/olivander/application_context.rb', line 98 def url @url end |