Sha256: 44b801f360b8bf8e3d78c3ef2891597ea80fae9e2eb37154c8fe6e562f31c657
Contents?: true
Size: 1.37 KB
Versions: 9
Compression:
Stored size: 1.37 KB
Contents
require_relative './model' module Spaceship module 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) 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
Version data entries
9 entries across 9 versions & 1 rubygems