24 25 26 27 28
# File 'lib/vzaar_api/lib/active_object.rb', line 24 def create(attrs) scope_id = attrs.delete :scope_id response = Lib::Api.new.post(resource_url(nil, scope_id), attrs) new response.data.merge(scope_id: scope_id) end