Class: Socket2me::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
# File 'lib/socket2me/configuration.rb', line 11

def initialize
  @ws_host = '0.0.0.0'
  @ws_port = '3001'
end

Instance Attribute Details

#loggerLogger

Returns a basic STDOUT logger if one hasn’t been set.

Returns:

  • (Logger)

    a basic STDOUT logger if one hasn’t been set



17
18
19
# File 'lib/socket2me/configuration.rb', line 17

def logger
  @logger ||= Logger.new(STDOUT)
end

#ws_hostObject



6
7
8
# File 'lib/socket2me/configuration.rb', line 6

def ws_host
  @ws_host
end

#ws_portObject



9
10
11
# File 'lib/socket2me/configuration.rb', line 9

def ws_port
  @ws_port
end