Class: Spectifly::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/spectifly/configuration.rb

Defined Under Namespace

Classes: InvalidPresenterPath

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pathObject

Returns the value of attribute entity_path.



4
5
6
# File 'lib/spectifly/configuration.rb', line 4

def entity_path
  @entity_path
end

#presenter_pathObject

Returns the value of attribute presenter_path.



4
5
6
# File 'lib/spectifly/configuration.rb', line 4

def presenter_path
  @presenter_path
end