Class: ActiveHook::App::Config

Inherits:
BaseConfig show all
Defined in:
lib/activehook/app/config.rb

Constant Summary collapse

OTHER_DEFAULTS =
{
  validation_path: '/hooks/validate',
  creation_path: '/hooks'
}.freeze

Constants inherited from BaseConfig

BaseConfig::BASE_DEFAULTS

Instance Attribute Summary collapse

Attributes inherited from BaseConfig

#redis_pool, #redis_url, #signature_header

Instance Method Summary collapse

Methods inherited from BaseConfig

#redis

Constructor Details

#initializeConfig

Returns a new instance of Config.



11
12
13
14
# File 'lib/activehook/app/config.rb', line 11

def initialize
  super
  OTHER_DEFAULTS.each { |key, value| send("#{key}=", value) }
end

Instance Attribute Details

#creation_pathObject

Returns the value of attribute creation_path.



9
10
11
# File 'lib/activehook/app/config.rb', line 9

def creation_path
  @creation_path
end

#validation_pathObject

Returns the value of attribute validation_path.



9
10
11
# File 'lib/activehook/app/config.rb', line 9

def validation_path
  @validation_path
end