Class: FileRpc::Configuration
- Inherits:
-
Object
- Object
- FileRpc::Configuration
- Defined in:
- lib/file_rpc/configuration.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#default_timeout ⇒ Object
Returns the value of attribute default_timeout.
-
#poll_interval ⇒ Object
Returns the value of attribute poll_interval.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/file_rpc/configuration.rb', line 7 def initialize @base_path = ENV.fetch("TOOLS_PATH", "/tmp/bus") @default_timeout = 600 # 10 minutes @poll_interval = 0.5 end |
Instance Attribute Details
#base_path ⇒ Object
Returns the value of attribute base_path.
5 6 7 |
# File 'lib/file_rpc/configuration.rb', line 5 def base_path @base_path end |
#default_timeout ⇒ Object
Returns the value of attribute default_timeout.
5 6 7 |
# File 'lib/file_rpc/configuration.rb', line 5 def default_timeout @default_timeout end |
#poll_interval ⇒ Object
Returns the value of attribute poll_interval.
5 6 7 |
# File 'lib/file_rpc/configuration.rb', line 5 def poll_interval @poll_interval end |