Sha256: 4940c579a4db84c22da83e960fa86e98ec3268f58e218133d63766c70da84c6e

Contents?: true

Size: 466 Bytes

Versions: 6

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true
class Zendesk2::Users
  include Zendesk2::Collection

  include Zendesk2::PagedCollection
  include Zendesk2::Searchable

  model Zendesk2::User

  self.collection_method = :get_users
  self.collection_root   = 'users'
  self.model_method      = :get_user
  self.model_root        = 'user'
  self.search_type       = 'user'
  self.search_request    = :search_user

  def current
    new(cistern.get_current_user.body['user'])
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zendesk2-1.15.0 lib/zendesk2/users.rb
zendesk2-1.13.1 lib/zendesk2/users.rb
zendesk2-1.13.0 lib/zendesk2/users.rb
zendesk2-1.12.0 lib/zendesk2/users.rb
zendesk2-1.11.0 lib/zendesk2/users.rb
zendesk2-1.10.0 lib/zendesk2/users.rb