Sha256: a3536e5be23cda956c55e1f3e1a42cbdc7de7fd1451069a8b53e8b7512eae1eb

Contents?: true

Size: 876 Bytes

Versions: 14

Compression:

Stored size: 876 Bytes

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 = 'users'
        endpoint = "#{endpoint}/#{endpoint_options[:resource_id]}" if endpoint_options[:resource_id]
        endpoint
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
contentful-management-2.12.1 lib/contentful/management/user.rb
contentful-management-2.12.0 lib/contentful/management/user.rb
contentful-management-2.11.0 lib/contentful/management/user.rb
contentful-management-2.10.0 lib/contentful/management/user.rb
contentful-management-2.9.1 lib/contentful/management/user.rb
contentful-management-2.9.0 lib/contentful/management/user.rb
contentful-management-2.8.2 lib/contentful/management/user.rb
contentful-management-2.8.1 lib/contentful/management/user.rb
contentful-management-2.8.0 lib/contentful/management/user.rb
contentful-management-2.7.0 lib/contentful/management/user.rb
contentful-management-2.6.0 lib/contentful/management/user.rb
contentful-management-2.5.0 lib/contentful/management/user.rb
contentful-management-2.4.0 lib/contentful/management/user.rb
contentful-management-2.3.0 lib/contentful/management/user.rb