Class: Kongkit::Client
- Inherits:
-
Object
- Object
- Kongkit::Client
- Includes:
- HTTParty, ApiObject, Cluster, Consumer, KeyAuthentication, Node, PluginObject, Request
- Defined in:
- lib/kongkit/client.rb,
lib/kongkit/client/node.rb,
lib/kongkit/client/cluster.rb,
lib/kongkit/client/request.rb,
lib/kongkit/client/consumer.rb,
lib/kongkit/client/resource.rb,
lib/kongkit/client/api_object.rb,
lib/kongkit/client/plugin_object.rb,
lib/kongkit/client/key_authentication.rb
Defined Under Namespace
Modules: ApiObject, Cluster, Consumer, KeyAuthentication, Node, PluginObject, Request Classes: Resource
Instance Method Summary collapse
-
#initialize(url = 'http://localhost:8001') ⇒ Client
constructor
A new instance of Client.
Methods included from Request
Methods included from Node
#node_information, #node_status
Methods included from PluginObject
#add_plugin, #api_plugins, #edit_plugin, #enabled_plugins, #plugin, #plugin_schema, #plugins, #remove_plugin
Methods included from KeyAuthentication
#add_auth_key, #auth_keys, #delete_auth_key
Methods included from Consumer
#consumer, #consumers, #create_consumer, #delete_consumer, #edit_consumer
Methods included from Cluster
Methods included from ApiObject
#add_api, #api, #apis, #delete_api, #edit_api
Constructor Details
#initialize(url = 'http://localhost:8001') ⇒ Client
Returns a new instance of Client.
25 26 27 28 29 30 |
# File 'lib/kongkit/client.rb', line 25 def initialize(url = 'http://localhost:8001') @url = url self.class.base_uri(@url) self.class.headers('Accept' => 'application/json') end |