Class: Herdis::Handlers::AddShepherd

Inherits:
Goliath::API
  • Object
show all
Includes:
Common
Defined in:
lib/herdis/handlers/add_shepherd.rb

Instance Method Summary collapse

Methods included from Common

included

Instance Method Details

#response(env) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/herdis/handlers/add_shepherd.rb', line 9

def response(env)
  data = env['params']
  data.delete(:shepherd_id)
  data.delete("shepherd_id")
  Herdis::Plugins::ShepherdConnection.shepherd.add_shepherd(data)
  [201, {}, ""]
end