class Zendesk2::Groups include Zendesk2::Collection include Zendesk2::PagedCollection include Zendesk2::Searchable model Zendesk2::Group self.collection_method = :get_groups self.collection_root = "groups" self.model_method = :get_group self.model_root = "group" self.search_type = "group" def assignable data = self.service.get_assignable_groups.body collection = self.service.groups.load(data["groups"]) collection.merge_attributes(Cistern::Hash.slice(data, "next_page", "previous_page", "count")) end end