Class: JCW::Config
- Inherits:
-
Object
- Object
- JCW::Config
- Defined in:
- lib/jcw/config.rb
Instance Attribute Summary collapse
- #connection ⇒ Object
- #enabled ⇒ Object (also: #enabled?)
- #flush_interval ⇒ Object
- #grpc_ignore_methods ⇒ Object
- #logger ⇒ Object
- #rack_ignore_path_patterns ⇒ Object
- #service_name ⇒ Object
- #subscribe_to ⇒ Object
- #tags ⇒ Object
Instance Attribute Details
#connection ⇒ Object
29 30 31 |
# File 'lib/jcw/config.rb', line 29 def connection @connection ||= { protocol: :udp, host: "127.0.0.1", port: 6831 } end |
#enabled ⇒ Object Also known as: enabled?
15 16 17 |
# File 'lib/jcw/config.rb', line 15 def enabled @enabled ||= false end |
#flush_interval ⇒ Object
33 34 35 |
# File 'lib/jcw/config.rb', line 33 def flush_interval @flush_interval ||= 10 end |
#grpc_ignore_methods ⇒ Object
41 42 43 |
# File 'lib/jcw/config.rb', line 41 def grpc_ignore_methods @grpc_ignore_methods ||= [] end |
#logger ⇒ Object
49 50 51 |
# File 'lib/jcw/config.rb', line 49 def logger @logger ||= ::Logger.new($stdout) end |
#rack_ignore_path_patterns ⇒ Object
45 46 47 |
# File 'lib/jcw/config.rb', line 45 def rack_ignore_path_patterns @rack_ignore_path_patterns ||= [] end |
#service_name ⇒ Object
21 22 23 |
# File 'lib/jcw/config.rb', line 21 def service_name @service_name ||= "JCW service" end |
#subscribe_to ⇒ Object
25 26 27 |
# File 'lib/jcw/config.rb', line 25 def subscribe_to @subscribe_to ||= [] end |
#tags ⇒ Object
37 38 39 |
# File 'lib/jcw/config.rb', line 37 def @tags ||= {} end |