Sha256: 4632573e0efc7b836cefd2575afaa64d25884ec1d6ac1a19c5b3f9b33a0edfb0

Contents?: true

Size: 415 Bytes

Versions: 26

Compression:

Stored size: 415 Bytes

Contents

class Zendesk2::Client::Users < Zendesk2::PagedCollection
  include Zendesk2::Searchable

  model Zendesk2::Client::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(connection.get_current_user.body["user"])
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
zendesk2-1.4.2 lib/zendesk2/client/collections/users.rb
zendesk2-1.4.1 lib/zendesk2/client/collections/users.rb
zendesk2-1.4.0 lib/zendesk2/client/collections/users.rb
zendesk2-1.3.3 lib/zendesk2/client/collections/users.rb
zendesk2-1.3.2 lib/zendesk2/client/collections/users.rb
zendesk2-1.3.1 lib/zendesk2/client/collections/users.rb
zendesk2-1.3.0 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.10 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.9 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.7 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.6 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.5 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.4 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.3 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.2 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.1 lib/zendesk2/client/collections/users.rb
zendesk2-1.2.0 lib/zendesk2/client/collections/users.rb
zendesk2-1.1.3 lib/zendesk2/client/collections/users.rb
zendesk2-1.1.2 lib/zendesk2/client/collections/users.rb
zendesk2-1.0.0 lib/zendesk2/client/models/users.rb