Module: PumaAfterReply::Config

Defined in:
lib/puma_after_reply/config.rb

Overview

Since:

  • 0.1.0

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.after_replynil, ...

Returns:

  • (nil, #call, Proc)

Since:

  • 0.1.0



35
36
37
# File 'lib/puma_after_reply/config.rb', line 35

def after_reply
  @after_reply
end

.before_replynil, ...

Returns:

  • (nil, #call, Proc)

Since:

  • 0.1.0



29
30
31
# File 'lib/puma_after_reply/config.rb', line 29

def before_reply
  @before_reply
end

.fail_on_errorBoolean

Returns:

  • (Boolean)

Since:

  • 0.1.0



11
12
13
# File 'lib/puma_after_reply/config.rb', line 11

def fail_on_error
  @fail_on_error
end

.log_errornil, ...

Returns:

  • (nil, #call, Proc)

Since:

  • 0.1.0



17
18
19
# File 'lib/puma_after_reply/config.rb', line 17

def log_error
  @log_error
end

.on_errornil, ...

Returns:

  • (nil, #call, Proc)

Since:

  • 0.1.0



23
24
25
# File 'lib/puma_after_reply/config.rb', line 23

def on_error
  @on_error
end

.run_anywayBoolean

Returns:

  • (Boolean)

Since:

  • 0.1.0



41
42
43
# File 'lib/puma_after_reply/config.rb', line 41

def run_anyway
  @run_anyway
end

.thread_pool_sizeInteger

Returns:

  • (Integer)

Since:

  • 0.1.0



47
48
49
# File 'lib/puma_after_reply/config.rb', line 47

def thread_pool_size
  @thread_pool_size
end

Class Method Details

.__reset!void

This method returns an undefined value.

Since:

  • 0.1.0



84
85
86
87
88
89
90
91
92
# File 'lib/puma_after_reply/config.rb', line 84

def __reset!
  self.fail_on_error = false
  self.log_error = nil
  self.on_error = nil
  self.before_reply = nil
  self.after_reply = nil
  self.run_anyway = false
  self.thread_pool_size = 10
end

.configure(&configuration) ⇒ void

This method returns an undefined value.

Parameters:

  • configuration (Block)

Since:

  • 0.1.0



54
55
56
# File 'lib/puma_after_reply/config.rb', line 54

def configure(&configuration)
  instance_eval(&configuration)
end

.to_hHash<Symbol,Any>

rubocop:disable Style/EndlessMethod

Returns:

  • (Hash<Symbol,Any>)

Since:

  • 0.1.0



63
64
65
66
67
68
69
70
71
72
# File 'lib/puma_after_reply/config.rb', line 63

def to_h = {
  fail_on_error:,
  log_error:,
  on_error:,
  before_reply:,
  after_reply:,
  run_anyway:,
  thread_pool_size:
}
# rubocop:enable Style/EndlessMethod

.to_sString

Returns:

  • (String)

Since:

  • 0.1.0



78
# File 'lib/puma_after_reply/config.rb', line 78

def to_s = to_h.inspect