Class: RailsHttpLab::Configuration
- Inherits:
-
Object
- Object
- RailsHttpLab::Configuration
- Defined in:
- lib/rails_http_lab/configuration.rb
Instance Attribute Summary collapse
-
#authenticator ⇒ Object
Returns the value of attribute authenticator.
-
#enabled_envs ⇒ Object
Returns the value of attribute enabled_envs.
-
#executor_max_body ⇒ Object
Returns the value of attribute executor_max_body.
-
#executor_timeout ⇒ Object
Returns the value of attribute executor_timeout.
-
#mount_path ⇒ Object
Returns the value of attribute mount_path.
-
#storage_path ⇒ Object
Returns the value of attribute storage_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #resolved_storage_path ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 17 |
# File 'lib/rails_http_lab/configuration.rb', line 10 def initialize @mount_path = "/rails/http-lab" @storage_path = nil @enabled_envs = %i[development] @authenticator = nil @executor_timeout = 30 @executor_max_body = 10 * 1024 * 1024 end |
Instance Attribute Details
#authenticator ⇒ Object
Returns the value of attribute authenticator.
3 4 5 |
# File 'lib/rails_http_lab/configuration.rb', line 3 def authenticator @authenticator end |
#enabled_envs ⇒ Object
Returns the value of attribute enabled_envs.
3 4 5 |
# File 'lib/rails_http_lab/configuration.rb', line 3 def enabled_envs @enabled_envs end |
#executor_max_body ⇒ Object
Returns the value of attribute executor_max_body.
3 4 5 |
# File 'lib/rails_http_lab/configuration.rb', line 3 def executor_max_body @executor_max_body end |
#executor_timeout ⇒ Object
Returns the value of attribute executor_timeout.
3 4 5 |
# File 'lib/rails_http_lab/configuration.rb', line 3 def executor_timeout @executor_timeout end |
#mount_path ⇒ Object
Returns the value of attribute mount_path.
3 4 5 |
# File 'lib/rails_http_lab/configuration.rb', line 3 def mount_path @mount_path end |
#storage_path ⇒ Object
Returns the value of attribute storage_path.
3 4 5 |
# File 'lib/rails_http_lab/configuration.rb', line 3 def storage_path @storage_path end |
Instance Method Details
#resolved_storage_path ⇒ Object
19 20 21 |
# File 'lib/rails_http_lab/configuration.rb', line 19 def resolved_storage_path @storage_path || default_storage_path end |