Sha256: 295ce5e19998f42832445f3bf6fedcaea5485f3567453e9e5b2dd5947ffe6028
Contents?: true
Size: 585 Bytes
Versions: 8
Compression:
Stored size: 585 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(parameters) body = connection.search(parameters.merge("type" => "organization")).body if data = body.delete("results") load(data) end merge_attributes(body) end end
Version data entries
8 entries across 8 versions & 1 rubygems