lib/loquor/api_calls/create.rb in loquor-0.2.0 vs lib/loquor/api_calls/create.rb in loquor-0.3.0
- old
+ new
@@ -1,14 +1,14 @@
module Loquor
class ApiCall::Create < ApiCall
- def initialize(path, payload)
- super(path)
+ def initialize(klass, payload)
+ super(klass)
@payload = payload
end
def execute
- Loquor.post(@path, @payload)
+ klass.new Loquor.post(klass.path, @payload)
end
end
end