Class: Spectifly::Configuration
- Inherits:
-
Object
- Object
- Spectifly::Configuration
- Defined in:
- lib/spectifly/configuration.rb
Defined Under Namespace
Classes: InvalidPresenterPath
Instance Attribute Summary collapse
-
#entity_path ⇒ Object
Returns the value of attribute entity_path.
-
#presenter_path ⇒ Object
Returns the value of attribute presenter_path.
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(config = {}) ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 |
# File 'lib/spectifly/configuration.rb', line 6 def initialize(config = {}) @entity_path = config.fetch('entity_path') set_presenter_path(config['presenter_path']) end |
Instance Attribute Details
#entity_path ⇒ Object
Returns the value of attribute entity_path.
4 5 6 |
# File 'lib/spectifly/configuration.rb', line 4 def entity_path @entity_path end |
#presenter_path ⇒ Object
Returns the value of attribute presenter_path.
4 5 6 |
# File 'lib/spectifly/configuration.rb', line 4 def presenter_path @presenter_path end |