class EventStore::HTTP::Info

Public Instance Methods

call() click to toggle source
# File lib/event_store/http/info.rb, line 9
def call
  logger.trace { "GET info endpoint" }

  request = Net::HTTP::Get.new uri_path

  http_response = connection.request request

  response = Transform::Read.(http_response.body, :json, Response)

  logger.debug { "GET info endpoint done (#{response.digest})" }

  response
end
uri_path() click to toggle source
# File lib/event_store/http/info.rb, line 23
def uri_path
  '/info'
end