Sha256: d2da2b9268ce56a63f50698b5733a6b74055e7d21c66d28a56154a01329e0fe2

Contents?: true

Size: 380 Bytes

Versions: 5

Compression:

Stored size: 380 Bytes

Contents

class Zendesk2::Client::Users < Cistern::Collection
  include 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"

  def current
    new(connection.get_current_user.body["user"])
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zendesk2-0.0.18 lib/zendesk2/client/models/users.rb
zendesk2-0.0.17 lib/zendesk2/client/models/users.rb
zendesk2-0.0.16 lib/zendesk2/client/models/users.rb
zendesk2-0.0.15 lib/zendesk2/client/models/users.rb
zendesk2-0.0.14 lib/zendesk2/client/models/users.rb