Class: Anycable::Config
- Inherits:
-
Anyway::Config
- Object
- Anyway::Config
- Anycable::Config
- Defined in:
- lib/anycable/config.rb
Overview
Anycable configuration.
Instance Method Summary collapse
- #http_health_port_provided? ⇒ Boolean
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
20 21 22 23 24 25 26 |
# File 'lib/anycable/config.rb', line 20 def initialize(*) super # Set log params if debug is true return unless debug self.log_level = :debug self.log_grpc = true end |
Instance Method Details
#http_health_port_provided? ⇒ Boolean
28 29 30 |
# File 'lib/anycable/config.rb', line 28 def http_health_port_provided? !http_health_port.nil? && http_health_port != "" end |