Class: EasyUpnp::HttpListener::Options
- Inherits:
-
OptionsBase
- Object
- OptionsBase
- EasyUpnp::HttpListener::Options
- Defined in:
- lib/easy_upnp/events/http_listener.rb
Constant Summary collapse
- DEFAULTS =
{ # Port to listen on. Default value "0" will cause OS to choose a random # ephemeral port listen_port: 0, # Address to bind listener on. Default value binds to all IPv4 # interfaces. bind_address: '0.0.0.0', # By default, event callback just prints the changed state vars callback: ->(state_vars) { puts state_vars.inspect } }
Instance Attribute Summary
Attributes inherited from OptionsBase
Instance Method Summary collapse
-
#initialize(options) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(options) ⇒ Options
Returns a new instance of Options.
24 25 26 |
# File 'lib/easy_upnp/events/http_listener.rb', line 24 def initialize() super(, DEFAULTS) end |