Module: EventStore::HTTP::Info::Response::Transformer

Defined in:
lib/event_store/http/info/response/transformer.rb

Defined Under Namespace

Modules: JSON

Class Method Summary collapse

Class Method Details

.instance(raw_data) ⇒ Object



10
11
12
13
14
15
16
# 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

.jsonObject



6
7
8
# File 'lib/event_store/http/info/response/transformer.rb', line 6

def self.json
  JSON
end