Class: Socket2me::Configuration
- Inherits:
-
Object
- Object
- Socket2me::Configuration
- Defined in:
- lib/socket2me/configuration.rb
Instance Attribute Summary collapse
-
#logger ⇒ Logger
A basic STDOUT logger if one hasn’t been set.
- #ws_host ⇒ Object
- #ws_port ⇒ Object
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#logger ⇒ Logger
Returns 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_host ⇒ Object
6 7 8 |
# File 'lib/socket2me/configuration.rb', line 6 def ws_host @ws_host end |
#ws_port ⇒ Object
9 10 11 |
# File 'lib/socket2me/configuration.rb', line 9 def ws_port @ws_port end |