Module: Kongkit

Defined in:
lib/kongkit.rb,
lib/kongkit/client.rb,
lib/kongkit/version.rb,
lib/kongkit/client/node.rb,
lib/kongkit/configuration.rb,
lib/kongkit/client/request.rb,
lib/kongkit/client/cluster.rb,
lib/kongkit/client/resource.rb,
lib/kongkit/client/consumer.rb,
lib/kongkit/client/api_object.rb,
lib/kongkit/client/plugin_object.rb,
lib/kongkit/client/key_authentication.rb

Defined Under Namespace

Classes: Client, Configuration

Constant Summary collapse

VERSION =
"0.3.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration


7
8
9
# File 'lib/kongkit.rb', line 7

def configuration
  @configuration
end

Class Method Details

.clientKongkit::Client

API client

Returns:


16
17
18
19
20
# File 'lib/kongkit.rb', line 16

def client
  return @client if defined?(@client)

  @client = Kongkit::Client.new(configuration.url)
end

.configure {|configuration| ... } ⇒ Object

Yields:


22
23
24
# File 'lib/kongkit.rb', line 22

def configure
  yield(configuration)
end