Class: TunnelBroker::Client
- Inherits:
-
Object
- Object
- TunnelBroker::Client
- Defined in:
- lib/tunnelbroker/client.rb
Overview
TunnelBroker client for communication with the API
Instance Method Summary collapse
Instance Method Details
#config ⇒ Object
21 22 23 |
# File 'lib/tunnelbroker/client.rb', line 21 def config @config ||= TunnelBroker::Configuration.new end |
#configure {|config| ... } ⇒ Object
11 12 13 |
# File 'lib/tunnelbroker/client.rb', line 11 def configure yield(config) if Kernel.block_given? end |
#submit_update ⇒ Object
15 16 17 18 19 |
# File 'lib/tunnelbroker/client.rb', line 15 def submit_update c = build_messenger_config tb = TunnelBroker::Messenger.new(c) tb.call_api end |