module EventStore::HTTP::Info::Response::Transformer

Public Class Methods

instance(raw_data) click to toggle source
# File lib/event_store/http/info/response/transformer.rb, line 10
def self.instance(raw_data)
  response = Response.new
  response.event_store_version = raw_data[:es_version]
  response.state = raw_data[:state].capitalize
  response.projections_mode = raw_data[:projections_mode]
  response
end
json() click to toggle source
# File lib/event_store/http/info/response/transformer.rb, line 6
def self.json
  JSON
end