lib/velocity/api/invite.rb in velocity_client_ruby-0.2.1 vs lib/velocity/api/invite.rb in velocity_client_ruby-0.3.0
- old
+ new
@@ -1,10 +1,12 @@
module Velocity
module Api
class Invite < Velocity::Api::Base
def create
- parse_response(self.class.post("/invitations", options.merge(body)))
+ post("/invitations", body)
end
+
+ private
def body
{
body: {
data: {