class Diplomat::Members

Methods for interacting with the Consul members API endpoint

Public Instance Methods

get() click to toggle source

Get all members @return [OpenStruct] all data associated with the service

# File lib/diplomat/members.rb, line 8
def get
  ret = @conn.get '/v1/agent/members'
  JSON.parse(ret.body)
end