Class: Holoserve::Interface::Control::State::Update

Inherits:
Goliath::API
  • Object
show all
Includes:
Goliath::Rack::Types, Helper
Defined in:
lib/holoserve/interface/control/state.rb

Instance Method Summary collapse

Methods included from Helper

#bad_request, #bucket, #history, #not_found, #ok, #pairs, #respond_json, #respond_json_acknowledgement, #state

Instance Method Details

#response(environment) ⇒ Object



11
12
13
14
15
# File 'lib/holoserve/interface/control/state.rb', line 11

def response(environment)
  state.merge! environment.parameters
  logger.info "set state to '#{state.inspect}'"
  respond_json_acknowledgement
end