Class: Tidewave::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/tidewave/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_ipsObject

Returns the value of attribute allowed_ips.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def allowed_ips
  @allowed_ips
end

#allowed_originsObject

Returns the value of attribute allowed_origins.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def allowed_origins
  @allowed_origins
end

#localhost_onlyObject

Returns the value of attribute localhost_only.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def localhost_only
  @localhost_only
end

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/tidewave/configuration.rb', line 5

def logger
  @logger
end