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 }, # Parses event bodies. By default parse the XML into a hash. Use # EasyUpnp::NoOpEventParser to skip parsing event_parser: EasyUpnp::DefaultEventParser }
Instance Attribute Summary
Attributes inherited from OptionsBase
Instance Method Summary collapse
-
#initialize(options) ⇒ Options
constructor
A new instance of Options.