Sha256: 06e22c69f03fb26ec7c82ecb097ce97efa96ad1611aadb4185ddc0b4b80a1a09

Contents?: true

Size: 1.48 KB

Versions: 16

Compression:

Stored size: 1.48 KB

Contents

require_relative '../../model'
module Spaceship
  module ConnectAPI
    module TestFlight
      class User
        include Spaceship::ConnectAPI::Model

        attr_accessor :username
        attr_accessor :first_name
        attr_accessor :last_name
        attr_accessor :email
        attr_accessor :preferred_currency_territory
        attr_accessor :agreed_to_terms
        attr_accessor :roles
        attr_accessor :all_apps_visible
        attr_accessor :provisioning_allowed
        attr_accessor :email_vetting_required
        attr_accessor :notifications

        attr_mapping({
          "username" => "username",
          "firstName" => "first_name",
          "lastName" => "last_name",
          "email" => "email",
          "preferredCurrencyTerritory" => "preferred_currency_territory",
          "agreedToTerms" => "agreed_to_terms",
          "roles" => "roles",
          "allAppsVisible" => "all_apps_visible",
          "provisioningAllowed" => "provisioning_allowed",
          "emailVettingRequired" => "email_vetting_required",
          "notifications" => "notifications"
        })

        def self.type
          return "users"
        end

        #
        # API
        #

        def self.all(filter: {}, includes: nil, limit: nil, sort: nil)
          return client.get_users(filter: filter, includes: includes)
        end

        def self.find(email: nil, includes: nil)
          return all(filter: { email: email }, includes: includes)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fastlane-2.126.0.beta.20190623200100 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190622200100 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190621200104 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190620200055 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190619200046 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190618200051 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190617200114 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190616200045 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190615200013 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190614200105 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190613200017 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190611200027 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190610200032 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190609200013 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190608200023 spaceship/lib/spaceship/connect_api/testflight/models/user.rb
fastlane-2.126.0.beta.20190607200028 spaceship/lib/spaceship/connect_api/testflight/models/user.rb