Class: EventStore::HTTP::Info
- Inherits:
-
Object
- Object
- EventStore::HTTP::Info
- Includes:
- Request, Log::Dependency
- Defined in:
- lib/event_store/http/info.rb,
lib/event_store/http/info/response.rb,
lib/event_store/http/info/response/transformer.rb
Defined Under Namespace
Classes: Response
Instance Method Summary collapse
Methods included from Request
Instance Method Details
#call ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# 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 ⇒ Object
23 24 25 |
# File 'lib/event_store/http/info.rb', line 23 def uri_path '/info' end |