lib/spaceship/tunes/tester.rb in spaceship-0.34.3 vs lib/spaceship/tunes/tester.rb in spaceship-0.35.0
- old
+ new
@@ -218,11 +218,12 @@
)
def self.url
{
index: "ra/users/iap",
- create: "ra/users/iap/add"
+ create: "ra/users/iap/add",
+ delete: "ra/users/iap/delete"
}
end
def self.all
client.sandbox_testers(self).map { |tester| self.new(tester) }
@@ -236,9 +237,17 @@
first_name: first_name,
last_name: last_name,
country: country
)
self.new(data)
+ end
+
+ def self.delete!(emails)
+ client.delete_sandbox_testers!(self, emails)
+ end
+
+ def self.delete_all!
+ delete!(self.all.map(&:email))
end
end
end
end