class Diplomat::Members

Methods for interacting with the Consul members API endpoint

Public Instance Methods

get(options = {}) click to toggle source

Get all members @param options [Hash] options parameter hash @return [OpenStruct] all data associated with the service

# File lib/diplomat/members.rb, line 11
def get(options = {})
  ret = send_get_request(@conn, ['/v1/agent/members'], options)
  JSON.parse(ret.body)
end