Class: Diplomat::Members
- Inherits:
-
RestClient
- Object
- RestClient
- Diplomat::Members
- Defined in:
- lib/diplomat/members.rb
Overview
Methods for interacting with the Consul members API endpoint
Instance Method Summary collapse
-
#get(options = {}) ⇒ OpenStruct
Get all members.
Methods inherited from RestClient
access_method?, #concat_url, #configuration, #initialize, method_missing, respond_to?, respond_to_missing?, #use_named_parameter
Constructor Details
This class inherits a constructor from Diplomat::RestClient
Instance Method Details
#get(options = {}) ⇒ OpenStruct
Get all members
11 12 13 14 |
# File 'lib/diplomat/members.rb', line 11 def get( = {}) ret = send_get_request(@conn, ['/v1/agent/members'], ) JSON.parse(ret.body) end |