Sha256: 52e1867b82be23525906c275f56e86dd4ef4a463b2aba560de7fee522c3d050d
Contents?: true
Size: 942 Bytes
Versions: 90
Compression:
Stored size: 942 Bytes
Contents
require_relative '../model' module Spaceship class ConnectAPI class CustomAppUser include Spaceship::ConnectAPI::Model attr_accessor :apple_id attr_mapping({ "appleId" => "apple_id" }) def self.type return "customAppUsers" end # # API # def self.all(app_id: nil, filter: {}, includes: nil, limit: nil, sort: nil) resps = Spaceship::ConnectAPI.get_custom_app_users( app_id: app_id, filter: filter, includes: includes, limit: nil, sort: nil ).all_pages return resps.flat_map(&:to_models) end def self.create(app_id: nil, apple_id: nil) return Spaceship::ConnectAPI.post_custom_app_user(app_id: app_id, apple_id: apple_id).first end def delete! Spaceship::ConnectAPI.delete_custom_app_user(custom_app_user_id: id) end end end end
Version data entries
90 entries across 90 versions & 4 rubygems