Class: TunnelBroker::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/tunnelbroker/client.rb

Overview

TunnelBroker client for communication with the API

Instance Method Summary collapse

Instance Method Details

#configObject



21
22
23
# File 'lib/tunnelbroker/client.rb', line 21

def config
  @config ||= TunnelBroker::Configuration.new
end

#configure {|config| ... } ⇒ Object

Yields:



11
12
13
# File 'lib/tunnelbroker/client.rb', line 11

def configure
  yield(config) if Kernel.block_given?
end

#submit_updateObject



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