Class: Nanobot::Config::GatewayConfig
- Inherits:
-
Struct
- Object
- Struct
- Nanobot::Config::GatewayConfig
- Defined in:
- lib/nanobot/config/schema.rb
Overview
HTTP Gateway channel configuration
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(enabled: false, host: '127.0.0.1', port: 18_790, auth_token: nil) ⇒ GatewayConfig
constructor
A new instance of GatewayConfig.
Constructor Details
#initialize(enabled: false, host: '127.0.0.1', port: 18_790, auth_token: nil) ⇒ GatewayConfig
Returns a new instance of GatewayConfig.
149 150 151 |
# File 'lib/nanobot/config/schema.rb', line 149 def initialize(enabled: false, host: '127.0.0.1', port: 18_790, auth_token: nil) super end |
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token
144 145 146 |
# File 'lib/nanobot/config/schema.rb', line 144 def auth_token @auth_token end |
#enabled ⇒ Object
Returns the value of attribute enabled
144 145 146 |
# File 'lib/nanobot/config/schema.rb', line 144 def enabled @enabled end |
#host ⇒ Object
Returns the value of attribute host
144 145 146 |
# File 'lib/nanobot/config/schema.rb', line 144 def host @host end |
#port ⇒ Object
Returns the value of attribute port
144 145 146 |
# File 'lib/nanobot/config/schema.rb', line 144 def port @port end |