Class: Tidewave::Configuration
- Inherits:
-
Object
- Object
- Tidewave::Configuration
- Defined in:
- lib/tidewave/configuration.rb
Instance Attribute Summary collapse
-
#allowed_ips ⇒ Object
Returns the value of attribute allowed_ips.
-
#allowed_origins ⇒ Object
Returns the value of attribute allowed_origins.
-
#localhost_only ⇒ Object
Returns the value of attribute localhost_only.
-
#logger ⇒ Object
Returns the value of attribute logger.
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 12 |
# File 'lib/tidewave/configuration.rb', line 7 def initialize @logger = Logger.new(STDOUT) @allowed_origins = nil @localhost_only = true @allowed_ips = nil end |
Instance Attribute Details
#allowed_ips ⇒ Object
Returns the value of attribute allowed_ips.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def allowed_ips @allowed_ips end |
#allowed_origins ⇒ Object
Returns the value of attribute allowed_origins.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def allowed_origins @allowed_origins end |
#localhost_only ⇒ Object
Returns the value of attribute localhost_only.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def localhost_only @localhost_only end |
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/tidewave/configuration.rb', line 5 def logger @logger end |