Sha256: ada138f8fb379915c73f864ef45d479b7efdd344159f750b8a1453b15a1e169b
Contents?: true
Size: 565 Bytes
Versions: 4
Compression:
Stored size: 565 Bytes
Contents
class Zendesk2::Client::Organizations < Cistern::Collection include Zendesk2::PagedCollection model Zendesk2::Client::Organization self.collection_method= :get_organizations self.collection_root= "organizations" self.model_method= :get_organization self.model_root= "organization" def current new(connection.get_current_organization.body["organization"]) end def search(term) body = connection.search_organization("query" => term).body if data = body.delete("results") load(data) end merge_attributes(body) end end
Version data entries
4 entries across 4 versions & 1 rubygems