Sha256: 1646a8e0032c62a14961312b8f50d92329a9a74fa88d5ff6aa4b82ac9795a557
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
require_relative '../model' module Spaceship class ConnectAPI 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) resps = Spaceship::ConnectAPI.get_users(filter: filter, includes: includes).all_pages return resps.flat_map(&:to_models) end def self.find(email: nil, includes: nil) return all(filter: { email: email }, includes: includes) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastlane_hotfix-2.165.1 | spaceship/lib/spaceship/connect_api/models/user.rb |
fastlane_hotfix-2.165.0 | spaceship/lib/spaceship/connect_api/models/user.rb |