lib/contentful/management/user.rb in contentful-management-1.10.1 vs lib/contentful/management/user.rb in contentful-management-2.0.0
- old
+ new
@@ -4,19 +4,19 @@
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::SystemProperties
include Contentful::Management::Resource::Refresher
+ include Contentful::Management::Resource::SystemProperties
- property :firstName, :string
+ property :email, :string
property :lastName, :string
+ property :firstName, :string
property :avatarUrl, :string
- property :email, :string
property :activated, :boolean
- property :signInCount, :integer
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]