Sha256: b4008cd478efa5cdc30e60155a79ac066a496db496cac1251d507b7271c459ec
Contents?: true
Size: 1.16 KB
Versions: 11
Compression:
Stored size: 1.16 KB
Contents
require_relative 'resource' module Contentful module Management # Resource class for User. # @see _ https://www.contentful.com/developers/docs/references/content-management-api/#/reference/users class User include Contentful::Management::Resource include Contentful::Management::Resource::Refresher include Contentful::Management::Resource::SystemProperties property :email, :string property :lastName, :string property :firstName, :string property :avatarUrl, :string property :activated, :boolean property :confirmed, :boolean property :signInCount, :integer # @private def self.build_endpoint(endpoint_options) endpoint = if endpoint_options[:space_id] "spaces/#{endpoint_options[:space_id]}/users" elsif endpoint_options[:organization_id] "organizations/#{endpoint_options[:organization_id]}/users" else 'users' end endpoint = "#{endpoint}/#{endpoint_options[:resource_id]}" if endpoint_options[:resource_id] endpoint end end end end
Version data entries
11 entries across 11 versions & 1 rubygems