Class: Holoserve::Interface::Control::Pair::Fetch

Inherits:
Goliath::API
  • Object
show all
Includes:
Helper
Defined in:
lib/holoserve/interface/control/pair.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



17
18
19
20
# File 'lib/holoserve/interface/control/pair.rb', line 17

def response(environment)
  pair = pairs[ environment["parameters"][:id] ]
  respond_json pair
end