Class: Itsi::Server::Config::AfterMemoryLimitReached

Inherits:
Option
  • Object
show all
Defined in:
lib/itsi/server/config/options/hooks/after_memory_limit_reached.rb

Instance Method Summary collapse

Methods included from ConfigHelpers

included, load_and_register, #normalize_keys!

Constructor Details

#initialize(location, &params) ⇒ AfterMemoryLimitReached

Returns a new instance of AfterMemoryLimitReached.



17
18
19
# File 'lib/itsi/server/config/options/hooks/after_memory_limit_reached.rb', line 17

def initialize(location, &params)
  super(location, params)
end

Instance Method Details

#build!Object



21
22
23
24
# File 'lib/itsi/server/config/options/hooks/after_memory_limit_reached.rb', line 21

def build!
  location.options[:hooks] ||= {}
  location.options[:hooks][:after_memory_threshold_reached] = @params
end