Sha256: 350a743b4895cbeb701247e120cba9b96c27add50cdca6f0d7c46fb22a84cd71
Contents?: true
Size: 1.37 KB
Versions: 12
Compression:
Stored size: 1.37 KB
Contents
module Spaceship::TestFlight class Tester < Base # @return (String) The identifier of this tester, provided by iTunes Connect # @example # "60f858b4-60a8-428a-963a-f943a3d68d17" attr_accessor :tester_id # @return (String) The email of this tester # @example # "tester@spaceship.com" attr_accessor :email attr_mapping( 'id' => :tester_id, 'email' => :email ) # @return (Array) Returns all beta testers available for this account def self.all(app_id: nil) client.testers_for_app(app_id: app_id).map { |data| self.new(data) } end # @return (Spaceship::TestFlight::Tester) Returns the tester matching the parameter # as either the Tester id or email # @param email (String) (required): Value used to filter the tester, case insensitive def self.find(app_id: nil, email: nil) self.all(app_id: app_id).find { |tester| tester.email == email } end def self.create_app_level_tester(app_id: nil, first_name: nil, last_name: nil, email: nil) client.create_app_level_tester(app_id: app_id, first_name: first_name, last_name: last_name, email: email) end def remove_from_app!(app_id: nil) client.delete_tester_from_app(app_id: app_id, tester_id: self.tester_id) end end end
Version data entries
12 entries across 12 versions & 1 rubygems